GNU bug report logs - #28801
26.0.90; Document after-make-frame-functions, focus-in-hook in Startup Summary node

Previous Next

Package: emacs;

Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>

Date: Thu, 12 Oct 2017 21:32:02 UTC

Severity: wishlist

Found in version 26.0.90

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28801 in the body.
You can then email your comments to 28801 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to rob.davenport <at> gmail.com, eliz <at> gnu.org, bug-gnu-emacs <at> gnu.org:
bug#28801; Package emacs. (Thu, 12 Oct 2017 21:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kaushal Modi <kaushal.modi <at> gmail.com>:
New bug report received and forwarded. Copy sent to rob.davenport <at> gmail.com, eliz <at> gnu.org, bug-gnu-emacs <at> gnu.org. (Thu, 12 Oct 2017 21:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kaushal Modi <kaushal.modi <at> gmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Cc: Rob Davenport <rob.davenport <at> gmail.com>
Subject: 26.0.90; Document after-make-frame-functions, focus-in-hook in
 Startup Summary node
Date: Thu, 12 Oct 2017 21:30:51 +0000
[Message part 1 (text/plain, inline)]
X-Debbugs-CC: rob.davenport <at> gmail.com, eliz <at> gnu.org

Hello Eli,

I had a long conversation with you in May 2016[1] about understanding the
best place/hook for graphics related setup (like fonts) in emacs config,
when running emacsclient.

As I later learned in that conversation, neither after-init-hook nor
emacs-startup-hook were the right place for that.
after-make-frame-functions was also not good unless the frame is selected
(which is not the case in emacsclient/daemon). So focus-in-hook turned out
to be the best place were I can check if a certain font was available etc.

I have read through (elisp) Startup Summary, but it does not reference
after-make-frame-functions and its caveat with emacsclient. It also does
not reference focus-in-hook.

I believe having that information in that section will be very valuable to
other users using emacsclient in GUI frame.

Copying Rob on this as he had a similar question he asked me off the list.

[1]: http://lists.gnu.org/archive/html/help-gnu-emacs/2016-05/msg00148.html


In GNU Emacs 26.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.23)
 of 2017-10-12
Repository revision: 413978727c9fb1d26b64e81412434064d99ec568
Windowing system distributor 'The X.Org Foundation', version 11.0.60900000
System Description: Red Hat Enterprise Linux Workstation release 6.6
(Santiago)

-- 

Kaushal Modi
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28801; Package emacs. (Fri, 13 Oct 2017 08:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 28801 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kaushal Modi <kaushal.modi <at> gmail.com>
Cc: rob.davenport <at> gmail.com, 28801 <at> debbugs.gnu.org
Subject: Re: bug#28801: 26.0.90;
 Document after-make-frame-functions, focus-in-hook in Startup Summary
 node
Date: Fri, 13 Oct 2017 11:40:48 +0300
> Cc: Rob Davenport <rob.davenport <at> gmail.com>, rob.davenport <at> gmail.com, eliz <at> gnu.org
> From: Kaushal Modi <kaushal.modi <at> gmail.com>
> Date: Thu, 12 Oct 2017 21:30:51 +0000
> 
> I have read through (elisp) Startup Summary, but it does not reference after-make-frame-functions and its
> caveat with emacsclient. It also does not reference focus-in-hook.
> 
> I believe having that information in that section will be very valuable to other users using emacsclient in GUI
> frame.

These hooks are not related to startup, so I don't see why they should
be described in that section.  They would be out of place there, and
the resulting discoverability will be low.

There is a separate section that describes all of the hooks, and I
usually look there when I need some hook, but don't know which one to
use.

There could be a place for a new section in the Emacs manual regarding
customizations for people who start Emacs as a daemon.  Patches to
that effect are welcome from people who have experience using and
customizing Emacs in that mode.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28801; Package emacs. (Sat, 12 Oct 2019 20:32:01 GMT) Full text and rfc822 format available.

Message #11 received at 28801 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rob.davenport <at> gmail.com, 28801 <at> debbugs.gnu.org,
 Kaushal Modi <kaushal.modi <at> gmail.com>
Subject: Re: bug#28801: 26.0.90; Document after-make-frame-functions,
 focus-in-hook in Startup Summary node
Date: Sat, 12 Oct 2019 22:31:35 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> I have read through (elisp) Startup Summary, but it does not
>> reference after-make-frame-functions and its
>> caveat with emacsclient. It also does not reference focus-in-hook.
>> 
>> I believe having that information in that section will be very
>> valuable to other users using emacsclient in GUI
>> frame.
>
> These hooks are not related to startup, so I don't see why they should
> be described in that section.  They would be out of place there, and
> the resulting discoverability will be low.
>
> There is a separate section that describes all of the hooks, and I
> usually look there when I need some hook, but don't know which one to
> use.

And those hooks are mentioned in that node, so I don't think there's
anything to fix here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 28801 <at> debbugs.gnu.org and Kaushal Modi <kaushal.modi <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 12 Oct 2019 20:32:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 10 Nov 2019 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 167 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.