Commit graph

50 commits

Author SHA1 Message Date
Grayson Croom 00a0fa008a Replaced all tab characters with an appropriate number of spaces. 2017-12-20 14:32:38 -06:00
juki 9ff2d996f1 Update documentation to explain changes to ARGUMENT-POP 2017-11-30 09:32:43 +02:00
juki c284a289c3 Make sure the index stays within bounds 2017-11-26 23:39:51 +02:00
juki 5cb329956f Allow double quotes as string delimiters for command arguments 2017-11-26 13:16:14 +02:00
Javier Olaechea a2394f2765 COMMAND.LISP: Use when-let when applicable 2017-07-31 08:09:31 -05:00
Thomas 16b2810bf0 Use FBOUNDP when defining the :FUNCTION StumpWM Type
SYMBOL-FUNCTION signals an error if the function is not bound so the else-form
would never be executed. Use FBOUNDP instead.
2017-06-13 02:09:37 -05:00
Karl F 77d3f4532a Documentation fix: yes != yet 2017-06-12 11:32:59 -05:00
Thomas 983e0003ea Changed to cleaner version suggested by Javier Olaechea <pirata@gmail.com>.
Setting *shell-program* now effects both the prompt and the shell program used.
Warnings about not using prompt for both branches are also suppressed.
2017-03-18 00:45:52 +11:00
Thomas Atkinson 47f54e5b87 Change define-stumpwm-type :shell to allow the setting of the shell which the user wishes to run.
This is done by the addition of the variable *shell-to-use*.
When *shell-to-use* is nil the default "/bin/sh -c" is used otherwise the value of *shell-to-use* is used.
2017-03-17 17:53:07 +11:00
Javier Olaechea 247773ea65 Simplify STUMPWM-TYPE :FRAME implementation 2017-01-19 11:42:13 -05:00
Javier Olaechea 2221a1e378 Make DEFCOMMAND handle declarations
The previous code assumed that doctrings always went before
declarations. Common Lisp allows the programmer to write them in any order so
if someone placed a declare form before the docstring in the body of a
DEFCOMMAND the docstring would be lost.
2017-01-19 11:42:13 -05:00
Alex Kost dd6ee55376 Fix "y-or-n" prompt
* command.lisp (:y-or-n): Return a single boolean value instead of
  'values' with a list as the first (and only) value.
* tile-window.lisp (remember): Do not use 'first' to get "y-or-n" values.
2016-05-16 22:45:16 +03:00
David Bjergaard 956c3139a7 Merge branch 'master' of https://github.com/stumpwm/stumpwm 2015-10-04 11:31:00 +01:00
David Bjergaard 76f162faa0 reverting back to style-warning 2015-10-04 11:29:48 +01:00
Florian MARGAINE 44c1313cce
Don't pass the arguments to the hook. 2015-10-01 14:30:20 +02:00
Florian MARGAINE 5a812305b6
Fixes the return value of defcommand 2015-10-01 12:30:49 +02:00
Florian MARGAINE 8764de4f04
Adds *pre-command-hook* and *post-command-hook*
These hooks are called before and after each command, simply by putting
them in the command's function.
2015-10-01 12:09:15 +02:00
David Bjergaard 0111f49e31 Merging partial PR changes from #211 2015-09-29 10:40:58 +01:00
Joram Schrijver 5481bb3da7 Add :INTERACTIVE to restart to fix Clisp warning
The HyperSpec entry for RESTART-CASE and Clisp seem to disagree on the
need for :INTERACTIVE to make a restart interactively invokable.
2014-09-20 03:38:54 +02:00
Joram Schrijver b221103971 Export more symbols to fix the mpd module
All of the newly exported symbols seemed to make sense as exports, so I
added them to the EXPORT form of their respective files.
2014-06-03 21:00:29 +02:00
dbjergaard 1a6cc52beb Merge pull request #84 from girzel/docs
Manual section on commands and types
2014-03-24 22:53:46 -04:00
Eric Abrahamsen e5976f0ba0 Mention group-type restrictions in the defcommand macro. 2014-03-24 14:55:14 +08:00
Eric Abrahamsen 17bf7df265 Allow type functions to return nil values. 2014-03-24 14:46:39 +08:00
Michael 0df1e8764d Defcommand exports the command to the UI. Obviously it should export the command t the API. 2014-03-18 10:06:47 +04:00
Matt Spear cdc3d03841 make window-number work appropriately 2011-11-19 13:50:46 +00:00
Ben Spencer 931adde28a Return strings from window-map-number and group-map-number. 2011-11-19 13:45:41 +00:00
Wesley Dawson d8f75d5b17 Update FSF address 2011-11-13 12:31:20 +00:00
Lionel Flandrin 2fc9af6817 Add a password mode to read-one-line and a new :password stumpwm-type.
When :password is T, read-one-line will display #\* in place of the
actual input and won't save the result in the input-history.
2011-04-16 10:37:23 +01:00
Ben Spencer 0375162277 Use *group-number-map* in select-group. 2011-03-17 18:38:30 +00:00
Dirk Sondermann 0a745aecbd Fix passing arguments with 'colon'. 2010-12-28 14:26:26 +00:00
Shawn Betts c9a53e6ac8 Change completing-read and read-one-line to use &key arguments
This breaks backward compatibility!
2010-05-12 08:36:01 -07:00
Julian Stecklina 2f052dbd69 Fixed a paren typo introduced by 'make completing-read trim spaces off the beginning and end of the input'.
This was discovered by the ECL compiler.
2009-10-05 00:47:27 +02:00
Shawn Betts 3c4a53cdf3 make completing-read trim spaces off the beginning and end of the input
callers updated.
2009-07-13 01:02:09 -07:00
Shawn Betts 2aed028cb9 implement intern1 and use it instead of intern 2009-04-24 14:53:24 -07:00
Shawn e65bd69c7f fix two minor borkups from the merge 2008-10-21 21:28:10 -07:00
Shawn 1650598f48 Merge branch 'master' into test
straight forward stuff. A few patches changes functions that had moved
to different files. in the case of bindings.lisp 2 bindings needed to
be added to the new bindings code.

Conflicts:

	NEWS
	bindings.lisp
	command.lisp
	group.lisp
	kmap.lisp
	screen.lisp
	window.lisp
2008-10-21 20:46:37 -07:00
Shawn 9fe89bb43e fix :key-seq type to work with read-from-keymap 2008-10-21 18:57:48 -07:00
Shawn 11f665c02f don't allow inactive commands to be called or tab completed
Also, fix describe-command to handle aliases.
2008-10-21 18:54:30 -07:00
Shawn 236a89f4ba allow commands to belong to a class and tag commands appropriately
Also document some undocumented commands.
2008-10-21 18:54:30 -07:00
Shawn 6041752320 document defcommand 2008-10-04 18:00:53 -07:00
Shawn b361aff553 given a string, lookup the corresponding symbol by searching *command-hash* for match
Fixes the bug where (defcommand :abc () () (message "foo")) can't be
run from colon. it produces the error "command abc not found."
2008-07-20 17:35:20 -07:00
Shawn f8ac97e878 in select-group, attempt to match the whole name, then a partial name, then the number 2008-07-19 16:10:56 -07:00
Shawn 35c29fd13b new condition command-docstring-warning 2008-07-17 16:15:32 -07:00
Shawn a6732d722c put the command's docstring in the right place 2008-07-17 14:36:02 -07:00
Shawn 4626dc58ab update NEWS and documentation for defcommand 2008-07-15 16:58:27 -07:00
Lionel Flandrin 9ff9e45f77 interactive-command renamed to eval-command; new argument "interactivep"
* interactive-command renamed to the less ambiguous "eval-command".
* Optional argument "interactivep" used to know if the command should
  be run with %interactivep% set to T.
* (declare (ignorable %interactivep%)) in defcommand to avoid a warning
  about the potentially unused variable.
2008-07-15 16:54:01 -07:00
Lionel Flandrin 41989a16ef Modified implementation of defcommand to add a local %interactivep% variable
* %interactivep% is set to t if the defcommand is called directly from
  "colon" or a keybinding.
2008-07-14 15:24:57 -07:00
Shawn 6dd2cd308f Auto generate macro documentation from source code docstrings 2008-06-22 00:19:28 -07:00
Shawn Betts 5b85dfb9d2 reorder the let lines in select-group 2008-06-21 15:46:53 -07:00
Shawn f394515c3a break up user.lisp 2008-05-25 19:59:31 -07:00