GNU bug report logs - #9275
24.0.50; emacs 24 breaks use of 'argi' in command-line-functions from startup.el

Previous Next

Package: emacs;

Reported by: Kai Tetzlaff <kai.tetzlaff <at> web.de>

Date: Wed, 10 Aug 2011 00:16:02 UTC

Severity: normal

Found in version 24.0.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Kai Tetzlaff <kai.tetzlaff <at> web.de>, 9275 <at> debbugs.gnu.org
Subject: bug#9275: 24.0.50; emacs 24 breaks use of 'argi' in command-line-functions from startup.el
Date: Thu, 11 Aug 2011 02:02:36 +0200
On Wed, Aug 10, 2011 at 08:57, Glenn Morris <rgm <at> gnu.org> wrote:

> Clearly this feature is broken by the use of lexical-binding in startup.el.

Yet trivial to fix:

2011-08-11  Juanma Barranquero  <lekktu <at> gmail.com>

	* startup.el (argi): Declare as global variable (bug#9275).



=== modified file 'lisp/startup.el'
--- lisp/startup.el	2011-07-14 12:57:06 +0000
+++ lisp/startup.el	2011-08-10 23:57:40 +0000
@@ -105,6 +105,11 @@
 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




This bug report was last modified 14 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.