From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#38143: 27.0.50; Say that before-make-frame-hook & after-make-frame-functions are not invoked for the initial frame Date: Sat, 09 Nov 2019 18:21:40 +0100 Message-ID: <87imnthsnv.fsf@telefonica.net> References: <87mud5ivou.fsf@telefonica.net> <83a7959z7i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="170633"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 38143@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 09 18:22:13 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 1iTURB-000iBa-1g for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2019 18:22:13 +0100 Original-Received: from localhost ([::1]:38100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTUR9-0006y6-UO for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2019 12:22:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57691) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTUR1-0006wX-0v for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 12:22:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTUQz-0007Nn-Tv for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 12:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTUQz-0007Nh-RC for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 12:22:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iTUQz-0006wj-Lp for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 12:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Nov 2019 17:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38143 X-GNU-PR-Package: emacs Original-Received: via spool by 38143-submit@debbugs.gnu.org id=B38143.157332011426688 (code B ref 38143); Sat, 09 Nov 2019 17:22:01 +0000 Original-Received: (at 38143) by debbugs.gnu.org; 9 Nov 2019 17:21:54 +0000 Original-Received: from localhost ([127.0.0.1]:50222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTUQp-0006wM-VV for submit@debbugs.gnu.org; Sat, 09 Nov 2019 12:21:54 -0500 Original-Received: from relayout04-redir.e.movistar.es ([86.109.101.204]:46111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTUQn-0006w8-Ug for 38143@debbugs.gnu.org; Sat, 09 Nov 2019 12:21:50 -0500 Original-Received: from sky (233.red-79-151-7.dynamicip.rima-tde.net [79.151.7.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout04.e.movistar.es (Postfix) with ESMTPSA id 479P7m6KJ7z11M5; Sat, 9 Nov 2019 18:21:40 +0100 (CET) In-Reply-To: <83a7959z7i.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Nov 2019 11:27:29 +0200") X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-TnetOut-Country: IP: 79.151.7.233 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout04 X-TnetOut-MsgID: 479P7m6KJ7z11M5.A6911 X-TnetOut-SpamCheck: no es spam, Unknown X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1573924903.29088@sCNuny0g9t3A6EFF7s06Hg 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:171335 Archived-At: Eli Zaretskii writes: >> Note that any functions added to these hooks by your initial file are >> usually not run for the initial frame, since Emacs reads the initial >> file only after creating that frame. However, if the initial frame is >> specified to use a separate minibuffer frame (*note Minibuffers and >> Frames::), the functions will be run for both, the minibuffer-less and >> the minibuffer frame. >> >> This explanation is slightly misleading: Since the initial frame is >> not created by 'make-frame', Emacs would not run these hooks even if >> it did read the initial file earlier. > > But without an init file, where would the hooks come from? > > And anyway, the issue is probably only meaningful for users who define > these hooks in init files. So I think the only missing piece in the > above is to mention the daemon case. Please note that Martin is referring to the manual, not to the docstrings. Although mentioning the daemon case on the manual would be nice too. IMO the missing information on the docstrings is: 1. The hooks are not run for the initial frame because it is not created with `make-frame'. 2. Except when Emacs runs as daemon, in that case make-frame is always used and therefore the hooks are executed. The added text would be something like this: When Emacs is not executed as a daemon, `make-frame` is not used for creating the initial frame, therefore the hooks are not invoked on that case. Or this: `make-frame` is not used for the frame that is automatically created before the init file is processed, therefore the hooks are not invoked for that frame. Please note that when Emacs is executed as a daemon there is no such frame.