diff options
| author | Juanma Barranquero | 2011-08-12 22:45:45 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-08-12 22:45:45 +0200 |
| commit | 62f1ca498cf11a3fa9b707c115673ea7b298e957 (patch) | |
| tree | 2613e5b732a9ad12f8059c64c4c9c5a1af280018 | |
| parent | 29dbb8f772081d2f325b894257f3062d6ea404c8 (diff) | |
| download | emacs-62f1ca498cf11a3fa9b707c115673ea7b298e957.tar.gz emacs-62f1ca498cf11a3fa9b707c115673ea7b298e957.zip | |
lisp/startup.el (argi): Declare as global variable (bug#9275).
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/startup.el | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b9cf5367bf0..07f45b34a54 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-08-12 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * startup.el (argi): Declare as global variable (bug#9275). | ||
| 4 | |||
| 1 | 2011-08-12 Chong Yidong <cyd@stupidchicken.com> | 5 | 2011-08-12 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * subr.el (string-mark-left-to-right): Search the entire string | 7 | * subr.el (string-mark-left-to-right): Search the entire string |
diff --git a/lisp/startup.el b/lisp/startup.el index 6953ed25ed4..0dee969fb5a 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -105,6 +105,11 @@ This is a convenience alias, so that one can write \(pop argv\) | |||
| 105 | inside of --eval command line arguments in order to access | 105 | inside of --eval command line arguments in order to access |
| 106 | following arguments.") | 106 | following arguments.") |
| 107 | 107 | ||
| 108 | (with-no-warnings | ||
| 109 | ;; FIXME: Bad name for a dynamically bound variable | ||
| 110 | (defvar argi nil | ||
| 111 | "Current command-line argument.")) | ||
| 112 | |||
| 108 | (defvar command-line-functions nil ;; lrs 7/31/89 | 113 | (defvar command-line-functions nil ;; lrs 7/31/89 |
| 109 | "List of functions to process unrecognized command-line arguments. | 114 | "List of functions to process unrecognized command-line arguments. |
| 110 | Each function should access the dynamically bound variables | 115 | Each function should access the dynamically bound variables |