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: Mon, 16 May 2016 23:42:43 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1463442191 17256 80.91.229.3 (16 May 2016 23:43:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 23:43:11 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 17 01:43:10 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 1b2SAI-0006lN-0i for geh-help-gnu-emacs@m.gmane.org; Tue, 17 May 2016 01:43:10 +0200 Original-Received: from localhost ([::1]:47809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2SAC-0006Y2-Ui for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2016 19:43:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2SA3-0006TR-0j for help-gnu-emacs@gnu.org; Mon, 16 May 2016 19:42:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2SA1-0007jc-2v for help-gnu-emacs@gnu.org; Mon, 16 May 2016 19:42:53 -0400 Original-Received: from mail-oi0-x236.google.com ([2607:f8b0:4003:c06::236]:35599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2SA0-0007jX-Uc for help-gnu-emacs@gnu.org; Mon, 16 May 2016 19:42:53 -0400 Original-Received: by mail-oi0-x236.google.com with SMTP id x19so292868045oix.2 for ; Mon, 16 May 2016 16:42:52 -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=EoGn1LltOLbuFUXTEZPDnc7lHExN9rEfwr7TNvguWxE=; b=k09xZOypHKlimQBcvH+y1/9XipGhb4YU6af5y6SeDwTbfJTrrkVfPTZzK4689i8407 hSWKmIXPoPncmTVzzjgXEIBomSKWpcBGyU1U6vFgYmxrZtqzzxo0Ulaz7/kqlCejLkix B7vWEkfrMj1f3QKacORIpoz95YEMzp2Xd4jCXlphK8dM8VzNsTgoeIVKaSrgdiRFB3bH Q5efU5CFEo10J+sIDGvUGcG9XVN420BTWoPWqpkyNxLUaWYs+cvRkpegKmlsl5pNdgTk xoSGf9ovbSrKkTXEkCTylRn5CPBliYD+ky/3QGiaH3+OWfkwcCD6V6lH5hfGRforR5Ch XuEw== 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=EoGn1LltOLbuFUXTEZPDnc7lHExN9rEfwr7TNvguWxE=; b=EW0/hedO/nsPqyiG0s7OEECNZKgw5rqAGiJTvt3xBGF4p7Hohv92StztBITFS01Xri 1n/z5G1dyppC/TLUTQ4r8QuMRome+R8kksds8WVrq6FuuH4/wQT/W2xM8jqCFTAXYEWs Dq0z0mx2Yla4ExP+nCzCClIxDfNuWGa1sFPSGmqXfjKNJKeyWXr1yMTHP1Lj2+qN6lgX jl15A3nT0X1r/wCeoeGH9E7ZP4DEac9kKGom/kad4/xSpLofOvE1noZQvef15BWU7l12 DfZcFU69Gl4BAFygYoksH+Z5bd62mkRONFe7MekGQoi7ZZ9QnTMlDhaB1R9f3Pd55/zb n2iw== X-Gm-Message-State: AOPr4FV51fve3JSdZNhQL97COn6h6Tt0dNEnjqNHaxGvpeEDNOn/HD9PSN4gtB9rd+pHaiH2pdQ4+cfYC3+5QQ== X-Received: by 10.157.6.164 with SMTP id 33mr50005otx.164.1463442172341; Mon, 16 May 2016 16:42:52 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::236 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:110004 Archived-At: On Mon, May 16, 2016 at 7:35 PM Kaushal Modi wrote: > Here is a little snippet for testing > > ===== temp.el ===== > (add-hook 'after-make-frame-functions (lambda (frame) (message "frame: > %S"))) > ===== > I have a typo above; it should be (add-hook 'after-make-frame-functions (lambda (frame) (message "frame: %S" frame))) When you run "emacs -Q -l temp.el&", the above message will not be printed. > But it prints fine when emacs is launched in daemon mode. > On non-daemon emacs, that lambda form is never executed. On emacsclient, I see frame: # 0x2b299e8> -- -- Kaushal Modi