From: Juanma Barranquero Date: Fri, 12 Aug 2011 20:45:45 +0000 (+0200) Subject: lisp/startup.el (argi): Declare as global variable (bug#9275). X-Git-Tag: emacs-pretest-24.0.90~104^2~124^2~62^2~2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=62f1ca498cf11a3fa9b707c115673ea7b298e957;p=emacs.git lisp/startup.el (argi): Declare as global variable (bug#9275). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b9cf5367bf0..07f45b34a54 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-08-12 Juanma Barranquero + + * startup.el (argi): Declare as global variable (bug#9275). + 2011-08-12 Chong Yidong * 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\) inside of --eval command line arguments in order to access following arguments.") +(with-no-warnings + ;; FIXME: Bad name for a dynamically bound variable + (defvar argi nil + "Current command-line argument.")) + (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