From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#28801: 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-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e0828e200c7d91d055b604185" X-Trace: blaine.gmane.org 1507844023 1972 195.159.176.226 (12 Oct 2017 21:33:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 21:33:43 +0000 (UTC) Cc: rob.davenport@gmail.com To: 28801@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 23:33:37 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2l6m-0008KY-VW for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 23:33:37 +0200 Original-Received: from localhost ([::1]:47341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2l6u-0000Li-Dq for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 17:33:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2l5K-00083A-2e for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 17:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2l5I-00074P-3U for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 17:32:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2l5G-00072w-E5; Thu, 12 Oct 2017 17:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2l5G-0005Ib-7m; Thu, 12 Oct 2017 17:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: rob.davenport@gmail.com, eliz@gnu.org, bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2017 21:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" X-Debbugs-Original-Xcc: rob.davenport@gmail.com, eliz@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150784387420307 (code B ref -1); Thu, 12 Oct 2017 21:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2017 21:31:14 +0000 Original-Received: from localhost ([127.0.0.1]:36431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2l4U-0005HT-A4 for submit@debbugs.gnu.org; Thu, 12 Oct 2017 17:31:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2l4S-0005HE-RK for submit@debbugs.gnu.org; Thu, 12 Oct 2017 17:31:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2l4M-00064f-Gc for submit@debbugs.gnu.org; Thu, 12 Oct 2017 17:31:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2l4M-00064Q-CY for submit@debbugs.gnu.org; Thu, 12 Oct 2017 17:31:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2l4K-0007Oh-U4 for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 17:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2l4J-0005y9-9l for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 17:31:04 -0400 Original-Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:55102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2l4J-0005xO-5S for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 17:31:03 -0400 Original-Received: by mail-qt0-x232.google.com with SMTP id z19so16191264qtg.11 for ; Thu, 12 Oct 2017 14:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=N/tYKECbkJm9Mb0Uk2up3RtpB+Bd6DVYbcDbHl0ib1g=; b=UaYoyS6KDFLWXjhMkMSLqEHoLc3nnUSYn92K/kRJPqRLch4Enb6j+8OOt/pDF+rBMQ vz43Ia39KpJbpJDs1H8YJybKVIMHP3WZJpHSyvzNJvubACTBL8ib9VFYnvLnoQhEXUPt 0zaYoYm6k31gevKAsDeBDtW/al+R83Xza5BdJXWdkLDTDy/zIfNoGhYZGAn12Xpo0M07 L8oovf5zDk4rCS2E50LjJpTGTfYZqWJrV3KNLduCG5SLXdVk89mbNk5E73HBygCvhh+N 8NurQdr+JeUQxAIUU/d/uqDgcuZxY3Of7FqWfNZXaJs9GW1vl5VZ5SrElu8emcmrwrys Ca5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=N/tYKECbkJm9Mb0Uk2up3RtpB+Bd6DVYbcDbHl0ib1g=; b=UA3f8YI/9s7hn/15g3OnwX3VcFawiUzjnMATlRst/b3lSCMiOCLSSJKQ1JVNhL9O4Y fxkEq2K3YhtZ4gWfLEPsgiT6scMfC3dYu1G4p+xd9za2CMhtLDd6qaEfABxe3Foexs9w tpjGfPsdukZSDdonDAeoTrmqx835oLtDIb9KMFEXqYqYwBmxk5fy95KKDfhJeThh5IZO YOSHTXh5va+S56RIzpukRcsC4uuNm3I27JF7nYPAwgiQOMsBUiBnObZ8AcSDGS7ay6Hp bklG0VpoM93mYl1udAZV29EPRS5isk6c6lTq8bNWUvqLtMPuuZOJkDy2EQiOqzRW4uma xh+A== X-Gm-Message-State: AMCzsaViuRnmpkqXIM7VTpi+a2X6m1vViSi9RDrK4OIBzdc3z03BHvPJ ENVJb9AovkzLqcio1kGBsvo+nUgr/JgsZjm0ltY= X-Google-Smtp-Source: AOwi7QBVQtUeMr18VlVONHRj4bbSyJ9U0n5x3GckxwOOej23YsGoVZ9nqfBRRSeBOa789FeUxT62O/Mfpfg1jOpAsv8= X-Received: by 10.37.160.203 with SMTP id i11mr2691483ybm.464.1507843862155; Thu, 12 Oct 2017 14:31:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:138307 Archived-At: --089e0828e200c7d91d055b604185 Content-Type: text/plain; charset="UTF-8" X-Debbugs-CC: rob.davenport@gmail.com, eliz@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 --089e0828e200c7d91d055b604185 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=C2=A0
Hello Eli,

I had a long con= versation with you in May 2016[1] about understanding the best place/hook f= or graphics related setup (like fonts) in emacs config, when running emacsc= lient.

As I later learned in that conversation, ne= ither 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.<= /div>

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

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

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



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

--

Kaushal Modi

--089e0828e200c7d91d055b604185--