From: Juanma Barranquero <lekktu@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: Kai Tetzlaff <kai.tetzlaff@web.de>, 9275@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 [thread overview]
Message-ID: <CAAeL0SSHyqbrFw9iPHFKZ454zLnrsV_i-K-M-v1VrLHdT32nZA@mail.gmail.com> (raw)
In-Reply-To: <r9r54tn48g.fsf@fencepost.gnu.org>
On Wed, Aug 10, 2011 at 08:57, Glenn Morris <rgm@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@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
next prev parent reply other threads:[~2011-08-11 0:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 23:59 bug#9275: 24.0.50; emacs 24 breaks use of 'argi' in command-line-functions from startup.el Kai Tetzlaff
2011-08-10 6:57 ` Glenn Morris
2011-08-11 0:02 ` Juanma Barranquero [this message]
2011-08-12 21:14 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAeL0SSHyqbrFw9iPHFKZ454zLnrsV_i-K-M-v1VrLHdT32nZA@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=9275@debbugs.gnu.org \
--cc=kai.tetzlaff@web.de \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.