From 62f1ca498cf11a3fa9b707c115673ea7b298e957 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 12 Aug 2011 22:45:45 +0200 Subject: [PATCH] lisp/startup.el (argi): Declare as global variable (bug#9275). --- lisp/ChangeLog | 4 ++++ lisp/startup.el | 5 +++++ 2 files changed, 9 insertions(+) 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 -- 2.39.2