From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: Help using the right hook for loading theme on emacs daemon GUI Date: Tue, 22 Jan 2019 15:27:55 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000024623b058011d2b5" Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="122383"; mail-complaints-to="usenet@ciao.gmane.org" Cc: Emacs developers To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 22 22:17:01 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gm3Pp-000Vim-62 for ged-emacs-devel@m.gmane.org; Tue, 22 Jan 2019 22:17:01 +0100 Original-Received: from localhost ([127.0.0.1]:50037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm3Po-0005DW-28 for ged-emacs-devel@m.gmane.org; Tue, 22 Jan 2019 16:17:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm2f2-0007ev-CH for emacs-devel@gnu.org; Tue, 22 Jan 2019 15:28:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gm2f1-0000qp-7P for emacs-devel@gnu.org; Tue, 22 Jan 2019 15:28:40 -0500 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:42982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gm2ez-0000ir-SZ for emacs-devel@gnu.org; Tue, 22 Jan 2019 15:28:38 -0500 Original-Received: by mail-lf1-x131.google.com with SMTP id l10so19081724lfh.9 for ; Tue, 22 Jan 2019 12:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b6iubPaGfJ7yuQYNVIwPf4ajqyli/bD4zUqhNmJ+4nM=; b=DQRih7hnh5XMiyIxqyhc8BQuisiK826wUCJL32/yRUU9wXa9v0qSWxEHjMJErhSjTb h4PbZ0hu308C2arfEOw3U1Iawvub+kriLYQbs5UeqXbNpyIjXe/vnDqSHWNKx6JJPXqO JX1smR8fE7jyB/grwvvjgGo/vO4w4L0MmUfD23RPQO9pAXGW0Ck/YBki1IZquY7RbXBg 6w90wk9q76z469J+auuu+ssfD8TSUPAZ1wX3bqz5k/3JA05QxgNIrM89qhcPZldJB5A+ aSA5R9U5LVzTIhBO8w+2R6I6ZfZYdO95gFAXHF+MmJOGNujovNJPcT82x+RwO3lZJDX4 QgGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b6iubPaGfJ7yuQYNVIwPf4ajqyli/bD4zUqhNmJ+4nM=; b=cvQQdk/b7g6ASgdDHpQEcaYe3U5UXU5nVtdZ5KGvfmduafVkYZ3Wu9g4JpYtlstVxe 0sJmyxsTFbWxl7/OjL8hTcUm3ay0eEU4OYiaRwpLDN5rzf94zd6V+fROZMXznkFP8OCK Oy/ny/EcolGozi2hts1W4GupUODHr6MgUh1aH2RGzwdfDlZu6tEWvWaqbQYgl0SvRx61 fuPpSvR8LXA1/ppF6854oP3WhwYjHL4zx4E26fJStCiOq/A3NTwSaUsgUMJ/Sz9HXeYu 5fbTouNtrOAojZYqgRlNGcL2ECYwOBmx+5wQ727HNNqrchjtm4qFqTs/xcjdlUsHMVmp xDIQ== X-Gm-Message-State: AJcUukdmhmHfpblOaUDvQV02MmJCRt4SCJWfy5+JkDQpMgD8W27F8lk9 tYEwxiWvH0u8wNybVaTtaTHk8C6/T6xoI0Qxzgi9BQ== X-Google-Smtp-Source: ALg8bN5m/E1zTJBSpfMwmayZIleW1RQg0UxBCfDyNOpvJ64WCJoMtvM9N1lV25cTxxqd60wbJwALezCuN+XxSHwY3bc= X-Received: by 2002:a19:7018:: with SMTP id h24mr1642476lfc.162.1548188911950; Tue, 22 Jan 2019 12:28:31 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::131 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:232612 Archived-At: --00000000000024623b058011d2b5 Content-Type: text/plain; charset="UTF-8" Hi Phil, On Thu, Jan 17, 2019 at 10:47 PM Phil Sainty wrote: > > I'm not sure whether it's relevant in this case, but in general you > don't want to ignore the FRAME argument with after-make-frame-functions, > otherwise you don't know which frame is selected when your code is > evaluated. e.g.: > > (lambda (frame) > (with-selected-frame frame > ...)) > I'll keep that in mind. For the reason in that comment, after-make-frame-functions did not work for me, so I had stopped using it. Also, my workflow always uses only 1 frame. So there wasn't the problem of selecting the frame (I think it selected the one and only frame then open by default). Though, it's good to know the right way of using that frame argument. Thanks. --00000000000024623b058011d2b5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ph= il,

On Thu, Jan 17, 2019 at 10:47 PM Phil Sainty <psainty@orcon.net.nz> wrote:

I'm not sure whether it's relevant in this case, but in general you=
don't want to ignore the FRAME argument with after-make-frame-functions= ,
otherwise you don't know which frame is selected when your code is
evaluated.=C2=A0 e.g.:

(lambda (frame)
=C2=A0 =C2=A0(with-selected-frame frame
=C2=A0 =C2=A0 =C2=A0...))

I'll keep= that in mind. For the reason in that comment, after-make-frame-functions d= id not work for me, so I had stopped using it.

Als= o, my workflow always uses only 1 frame. So there wasn't the problem of= selecting the frame (I think it selected the one and only frame then open = by default).

Though, it's good to know the rig= ht way of using that frame argument.

Thanks.
--00000000000024623b058011d2b5--