From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Understanding after-make-frame-functions Date: Wed, 18 May 2016 02:31:09 +0000 Message-ID: References: <83futh4ad0.fsf@gnu.org> <83a8jo4p5v.fsf@gnu.org> <837fes4ews.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1463538940 23309 80.91.229.3 (18 May 2016 02:35:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 02:35:40 +0000 (UTC) To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 18 04:35:40 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b2rKl-0000fR-39 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 04:35:39 +0200 Original-Received: from localhost ([::1]:42504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2rKk-0001O3-5f for geh-help-gnu-emacs@m.gmane.org; Tue, 17 May 2016 22:35:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2rGb-00074h-Ev for help-gnu-emacs@gnu.org; Tue, 17 May 2016 22:31:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2rGZ-0006VZ-CJ for help-gnu-emacs@gnu.org; Tue, 17 May 2016 22:31:20 -0400 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:36714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2rGZ-0006VQ-7B; Tue, 17 May 2016 22:31:19 -0400 Original-Received: by mail-oi0-x22f.google.com with SMTP id x201so55562068oif.3; Tue, 17 May 2016 19:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=DWYmcwdYh/OgwqOBxSvta1q6Bnj9aziEog0n9Tj6c9U=; b=cWUSzQ4gKxqdPA24IWeiLjBc4K7DRdgUqH99PRB7Jnvyp0M+ANEbti/NfFrkbWp5tf sNG8egWqlDQ+K7JCzsk0dglioFAwmSk+WrND1ASUStbo594TgBobzaXERZ7Uj7iHqLNP KV+14oitTuKvts1wKVz/y9gF34mULT2hV5Cq2FpLZPSLhkTipSJOkRNYGdUIeiGi0Uuq ixBIII1qAToUlVHhA/O1HSxPZ61RzBboPeH2p3xVPIGNpaDeCG5z/aC5WZxhvbc4OfMr PZGJoWsQo3OKvUEBOKYEX8ZgYSKSOzmEltO7/iyzAa8m78w6XKt6BjKjsS4clZC5SAyd LbiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=DWYmcwdYh/OgwqOBxSvta1q6Bnj9aziEog0n9Tj6c9U=; b=Kw2lxWzZKLkf0xqKru3fJs8mzcF6AYKvl3yDqqimXAksDkeUDg38UZFOi5/ekwbre8 1xytM3qOnyhZHiQVXU5xuJ5k09PljHgZUG6R/bdm7Wf4Ka9Kwa/o7n8TnVUDqz8lIg1Q 9Yd7Df+O/63jdJdw8xEXhKK9c/iQi8zzR7pL+oBwKNopjojIzQUuxjhebLbGDsEHHZiu /i0IDGrm8qQJxUqa1aEaxui8kT0RMBaLPaq/wURbM1urXD09hDwgwVeGKEKPU/LpYsg1 7oK1WlyDNwc1eAL+JLxyVhr32mJz8q4I7itqVTs5KxgIpxpqxLXVbu+gv2NN4QlRx0cA ujGA== X-Gm-Message-State: AOPr4FVi95E+mkQvtSh+4j4HVBju04A4ayEmX8bvymdbelLDh4XjrdQuKFHlraYLW0GFBcJzp1LRFImqMwyVFg== X-Received: by 10.157.52.162 with SMTP id g31mr3057921otc.165.1463538678563; Tue, 17 May 2016 19:31:18 -0700 (PDT) In-Reply-To: <837fes4ews.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22f X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110034 Archived-At: On Tue, May 17, 2016, 9:59 PM Eli Zaretskii wrote: > When Emacs starts in daemon mode, it doesn't create any frames at all, > so I don't think I understand what you are saying here. > Yup, I messed up the terminology. As I mentioned in my earlier email and code snippets, my "daemon mode" is "emacsclient -c -a ''". So I run emacsclient (emacs daemon), but do create a frame using the -c argument. Please consider all my "emacs daemon" explanation in context of "emacsclient -c -a ''". In the debug message output (earlier email) corresponding to this case, you will see that the after-make-frame-functions hook is called *after* the emacs init is evaluated. I think it would be clearer just to say that this hook cannot be used > for the initial frame. > Well, that hook (after-make-frame-functions) is what I can use for the initial frame in the case of "emacsclient -c -a''&" but never in the case of "emacs &". > -- -- Kaushal Modi