diff options
author | David Kastrup <dak@gnu.org> | 2007-09-30 20:43:14 +0000 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2007-09-30 20:43:14 +0000 |
commit | aa5310e43ad28f8955c2c1e10bde32f227950956 (patch) | |
tree | 531cd8d2da011f4a2f10875f98987fd57ea1bdea /lisp/startup.el | |
parent | fdc31e1d3897cbfdea861deabd2e813dadd8e66c (diff) | |
download | emacs-aa5310e43ad28f8955c2c1e10bde32f227950956.tar.gz |
(argv): Alias for `command-line-args-left' to use as
`(pop argv)' inside of --eval command sequences. Allows for
passing shell commands into Emacs verbatim without need for Lisp
quoting.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r-- | lisp/startup.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 395d1673a1a..ef0e750d7dc 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -107,6 +107,12 @@ the remaining command-line args are in the variable `command-line-args-left'.") (defvar command-line-args-left nil "List of command-line args not yet processed.") +(defvaralias 'argv 'command-line-args-left + "List of command-line args not yet processed. +This is a convenience alias, so that one can write \(pop argv\) +inside of --eval command line arguments in order to access +following arguments.") + (defvar command-line-functions nil ;; lrs 7/31/89 "List of functions to process unrecognized command-line arguments. Each function should access the dynamically bound variables |