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.devel Subject: Re: Help using the right hook for loading theme on emacs daemon GUI Date: Thu, 24 Jan 2019 16:11:36 +0200 Message-ID: <83va2e6t7r.fsf@gnu.org> References: <6c1611672809c8d7b5011edf0d2dd831@webmail.orcon.net.nz> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="177136"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org, kaushal.modi@gmail.com To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 24 15:15:15 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmfmf-000jup-W8 for ged-emacs-devel@m.gmane.org; Thu, 24 Jan 2019 15:15:10 +0100 Original-Received: from localhost ([127.0.0.1]:54622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmfme-0004ws-Sp for ged-emacs-devel@m.gmane.org; Thu, 24 Jan 2019 09:15:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmfjJ-00037P-FP for emacs-devel@gnu.org; Thu, 24 Jan 2019 09:11:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmfjJ-0005K8-5y; Thu, 24 Jan 2019 09:11:41 -0500 Original-Received: from [176.228.60.248] (port=1366 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gmfjI-0008Pq-LA; Thu, 24 Jan 2019 09:11:40 -0500 In-reply-to: <6c1611672809c8d7b5011edf0d2dd831@webmail.orcon.net.nz> (message from Phil Sainty on Thu, 24 Jan 2019 16:47:59 +1300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232672 Archived-At: > Date: Thu, 24 Jan 2019 16:47:59 +1300 > From: Phil Sainty > Cc: Emacs developers > > It's true that just running 'emacs -nw' does not run that hook for the > initial frame -- but then neither does it run for the initial frame > when you start 'emacs' in GUI mode, so the "no-window mode" part does > not seem relevant. I think the comment is relevant, because in GUI mode we create a GUI frame early during the startup and then delete the initial frame. So from the user's perspective, starting Emacs in GUI mode does run the hook for the first frame displayed to the user. The importance of that should be obvious: users who want to have their initial customizations triggered by this hook will not see them for the initial displayed frame when starting Emacs in text mode.