# HG changeset patch # User David Kastrup # Date 1191184994 0 # Node ID 2e9aec8f7126939d08b72a822947b4a91bcbcddd # Parent 9f33047587c7d3d2adfbc5934e9b6af4d16102e1 (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. diff -r 9f33047587c7 -r 2e9aec8f7126 etc/NEWS --- a/etc/NEWS Sun Sep 30 20:26:55 2007 +0000 +++ b/etc/NEWS Sun Sep 30 20:43:14 2007 +0000 @@ -103,6 +103,10 @@ after starting Emacs: startup screen, *scratch* buffer, visiting a file or directory. +** New alias `argv' for `command-line-args-left' +This is a convenience alias, so that one can write `(pop argv)' +inside of --eval command line arguments in order to access +following arguments. * Incompatible Editing Changes in Emacs 23.1 diff -r 9f33047587c7 -r 2e9aec8f7126 lisp/ChangeLog --- a/lisp/ChangeLog Sun Sep 30 20:26:55 2007 +0000 +++ b/lisp/ChangeLog Sun Sep 30 20:43:14 2007 +0000 @@ -1,5 +1,10 @@ 2007-09-30 David Kastrup + * startup.el (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. + * autorevert.el (auto-revert-handler): In `auto-revert-tail-mode', check only for changed size. (auto-revert-tail-handler): Get size from caller. If the file has diff -r 9f33047587c7 -r 2e9aec8f7126 lisp/startup.el --- a/lisp/startup.el Sun Sep 30 20:26:55 2007 +0000 +++ b/lisp/startup.el Sun Sep 30 20:43:14 2007 +0000 @@ -107,6 +107,12 @@ (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