From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.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: Tue, 07 Dec 2021 00:22:50 +0100 Message-ID: <871r2pb9o5.fsf@telefonica.net> References: <87mud5ivou.fsf@telefonica.net> <83a7959z7i.fsf@gnu.org> <87imnthsnv.fsf@telefonica.net> <87ee6ru4l4.fsf@gnus.org> <83bl1v4c4r.fsf@gnu.org> <87fsr6q01u.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39925"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 38143@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 07 00:23:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muNK9-000ABE-DP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Dec 2021 00:23:09 +0100 Original-Received: from localhost ([::1]:33492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muNK8-0004A4-6g for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Dec 2021 18:23:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muNK2-00049q-E4 for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 18:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muNK2-0007YN-6u for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 18:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1muNK2-0006IC-3q for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 18:23:02 -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: Mon, 06 Dec 2021 23:23:02 +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.163883298124167 (code B ref 38143); Mon, 06 Dec 2021 23:23:02 +0000 Original-Received: (at 38143) by debbugs.gnu.org; 6 Dec 2021 23:23:01 +0000 Original-Received: from localhost ([127.0.0.1]:35658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muNK0-0006Hj-PA for submit@debbugs.gnu.org; Mon, 06 Dec 2021 18:23:01 -0500 Original-Received: from relayout02-redir.e.movistar.es ([86.109.101.202]:53401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muNJy-0006HT-HK for 38143@debbugs.gnu.org; Mon, 06 Dec 2021 18:22:59 -0500 Original-Received: from sky (234.red-88-17-68.dynamicip.rima-tde.net [88.17.68.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout02.e.movistar.es (Postfix) with ESMTPSA id 4J7KGg0wZDzddtH; Tue, 7 Dec 2021 00:22:50 +0100 (CET) In-Reply-To: <87fsr6q01u.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 05 Dec 2021 21:17:01 +0100") X-TnetOut-Country: IP: 88.17.68.234 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout02 X-TnetOut-MsgID: 4J7KGg0wZDzddtH.A9789 X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1639437771.84321@qGF5IR+kTNUtpb8ohlIp2A X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221794 Archived-At: Lars Ingebrigtsen writes: > Eli Zaretskii writes: > >> The new text is incorrect -- assuming that by "initial frame" the doc >> strings mean what we usually mean by that: the first frame displayed >> by a GUI Emacs session (see "Frame Parameters" in the user manual, and >> cf. initial-frame-alist). > > OK; reverted. Has this changed since the bug was reported? > >> Perhaps the bug report was using "initial frame" in another sense: to >> allude to the frame we create in temacs, which is a terminal frame, >> normally deleted when a GUI session starts, except in a daemon, which >> keeps it. But in that case, these changes will confuse the heck out >> of the users who will read them and try to figure out how to use this >> information. We should in that case explain in the doc strings which >> "initial frame" we allude to here. > > I think we need some input from the bug reported about what they meant > by "initial frame" here. I just tested with master and, indeed, the hook is executed. However, to be effective for all invocations of make-frame the user must add the function early enough (which means `early-init.el`.) When emacs.el is processed it is too late as the initial frame (the frame created by simply invoking emacs without parameters) already exists. Maybe we could expand the docstrings of the hooks and/or make-frame to note that you need early-init.el if you want your hooks executed when the initial frame is created. Otherwise, this bug can remain closed.