[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13934: Minor bug in `command-line-functions'

From: Stefan Monnier
Subject: bug#13934: Minor bug in `command-line-functions'
Date: Sat, 17 Aug 2019 08:46:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]