all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: xfq.free@gmail.com, Lars Ingebrigtsen <larsi@gnus.org>,
	13934@debbugs.gnu.org
Subject: bug#13934: Minor bug in `command-line-functions'
Date: Sat, 17 Aug 2019 08:46:35 -0400	[thread overview]
Message-ID: <jwva7c80xn8.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83lfvsnufs.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Aug 2019 10:05:11 +0300")

>> (setq command-line-functions '((lambda () (message "argi %s" argi))))
>> 
>> and `argi' is indeed dynamically bound when 
>> 
>>                      ;; We have almost exhausted our options. See if the
>>                      ;; user has made any other command-line options available
>>                      (let ((hooks command-line-functions)
>>                            (did-hook nil))
>>                        (while (and hooks
>>                                    (not (setq did-hook (funcall (car hooks)))))
>>                          (setq hooks (cdr hooks)))
>> 
>> is executed...  so is argi dynamic in the startup.el file, but not
>> elsewhere in Emacs?  In which case there is really nothing to fix in the
>> doc string?
>
> Yes, I think so.  Stefan?

Indeed, it's dynamically scoped in startup.el but not elsewhere.


        Stefan






  reply	other threads:[~2019-08-17 12:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-12 14:02 bug#13934: Minor bug in `command-line-functions' Xue Fuqiao
2019-08-15  5:59 ` Lars Ingebrigtsen
2019-08-15  6:06   ` Lars Ingebrigtsen
2019-08-17  7:05     ` Eli Zaretskii
2019-08-17 12:46       ` Stefan Monnier [this message]
2019-08-17 21:24         ` Lars Ingebrigtsen

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=jwva7c80xn8.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=13934@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    --cc=xfq.free@gmail.com \
    /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.