From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13934: Minor bug in `command-line-functions' Date: Sat, 17 Aug 2019 10:05:11 +0300 Message-ID: <83lfvsnufs.fsf@gnu.org> References: <20130312220221.02134854e129b6390469b6ae@gmail.com> <87h86jynmt.fsf@mouse.gnus.org> <87d0h7ynci.fsf@mouse.gnus.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="49536"; mail-complaints-to="usenet@blaine.gmane.org" Cc: xfq.free@gmail.com, 13934@debbugs.gnu.org To: Lars Ingebrigtsen , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 17 09:06:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hysmx-000Chw-6J for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Aug 2019 09:06:11 +0200 Original-Received: from localhost ([::1]:34566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hysmv-0003AZ-DR for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Aug 2019 03:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38039) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hysmp-0003AR-IL for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 03:06:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hysmo-0000DU-Kr for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 03:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hysmo-0000DE-Hb for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 03:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hysmo-000786-A9 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 03:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2019 07:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13934 X-GNU-PR-Package: emacs Original-Received: via spool by 13934-submit@debbugs.gnu.org id=B13934.156602552527354 (code B ref 13934); Sat, 17 Aug 2019 07:06:02 +0000 Original-Received: (at 13934) by debbugs.gnu.org; 17 Aug 2019 07:05:25 +0000 Original-Received: from localhost ([127.0.0.1]:55297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hysmC-000778-MD for submit@debbugs.gnu.org; Sat, 17 Aug 2019 03:05:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hysm9-00076s-MB for 13934@debbugs.gnu.org; Sat, 17 Aug 2019 03:05:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hysm3-000786-Hg; Sat, 17 Aug 2019 03:05:15 -0400 Original-Received: from [176.228.60.248] (port=3272 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hysm2-0008Cd-Ok; Sat, 17 Aug 2019 03:05:15 -0400 In-reply-to: <87d0h7ynci.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Wed, 14 Aug 2019 23:06:05 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165248 Archived-At: > From: Lars Ingebrigtsen > Date: Wed, 14 Aug 2019 23:06:05 -0700 > Cc: 13934@debbugs.gnu.org > > (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?