From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 03 04:19:14 2020 Received: (at submit) by debbugs.gnu.org; 3 Jun 2020 08:19:14 +0000 Received: from localhost ([127.0.0.1]:41902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgOcD-0008IA-Rv for submit@debbugs.gnu.org; Wed, 03 Jun 2020 04:19:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:45938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgOcB-0008I1-Vt for submit@debbugs.gnu.org; Wed, 03 Jun 2020 04:19:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgOcB-0005Jb-La for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2020 04:19:11 -0400 Received: from forward103j.mail.yandex.net ([5.45.198.246]:53763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgOc8-0001m4-TM for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2020 04:19:10 -0400 Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward103j.mail.yandex.net (Yandex) with ESMTP id B5EAC67430C1 for ; Wed, 3 Jun 2020 11:19:02 +0300 (MSK) Received: from iva8-6403930b9beb.qloud-c.yandex.net (iva8-6403930b9beb.qloud-c.yandex.net [2a02:6b8:c0c:2c9a:0:640:6403:930b]) by mxback14j.mail.yandex.net (mxback/Yandex) with ESMTP id egX2G4Ll68-J2LqR0Lh; Wed, 03 Jun 2020 11:19:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1591172342; bh=2yPcjViMH0TF+yvxs0g1Ld9Tg1jYd+aEj5gRPKyziRU=; h=To:From:Subject:Date:Message-ID; b=ZcqS3d5JbCWeJ0ZQyopFzCxzwXhoFrLOx30mxTkgIjqolMxC5IGIiux7bZFbRtsaP IYLqte9rK5xxVtNv57vFRTsYgYKo64SM0Dx4AODizWnw4vi8kodJcVm/H/qYOd1Knr VtOornXcZKwvloTrKd0/Z+KrudvNolW4J+DP3Z4g= Authentication-Results: mxback14j.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva8-6403930b9beb.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id IIKLLSbgJM-J22aopWl; Wed, 03 Jun 2020 11:19:02 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> Subject: makefile-gmake-mode does not trigger "eval-after-load"'s hooks From: Konstantin Kharlamov To: bug-gnu-emacs@gnu.org Date: Wed, 03 Jun 2020 11:19:01 +0300 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=5.45.198.246; envelope-from=hi-angel@yandex.ru; helo=forward103j.mail.yandex.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/03 04:19:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Functions added with (eval-after-load 'makefile-gmake-mode …) do not trigger when the mode is enabled # Steps to reproduce: 1. Run: emacs -Q --eval '(eval-after-load 'makefile-gmake-mode '(save- buffers-kill-emacs))' 2. In Emacs window opened execute: M-x makefile-gmake-mode ## Expected Emacs quits (because the save-buffers-kill-emacs gets executed) ## Actual Mode gets enabled, but nothing happens otherwise. # Version GNU Emacs 27.0.50 (build 15, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.17.3) of 2020-06-01 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 03 04:23:11 2020 Received: (at 41682) by debbugs.gnu.org; 3 Jun 2020 08:23:11 +0000 Received: from localhost ([127.0.0.1]:41926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgOg3-0008Pf-7f for submit@debbugs.gnu.org; Wed, 03 Jun 2020 04:23:11 -0400 Received: from forward103j.mail.yandex.net ([5.45.198.246]:51263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgOg1-0008PR-EW for 41682@debbugs.gnu.org; Wed, 03 Jun 2020 04:23:10 -0400 Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 780BC6740FEA for <41682@debbugs.gnu.org>; Wed, 3 Jun 2020 11:23:02 +0300 (MSK) Received: from iva8-174eb672ffa9.qloud-c.yandex.net (iva8-174eb672ffa9.qloud-c.yandex.net [2a02:6b8:c0c:b995:0:640:174e:b672]) by mxback10o.mail.yandex.net (mxback/Yandex) with ESMTP id Zp0qFS2Pf2-N2CqVD7f; Wed, 03 Jun 2020 11:23:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1591172582; bh=uMDKBEGhCu6EV3OphsB8GP6tc2TLgP/yRHqt20KTC/c=; h=To:From:Subject:Date:Message-ID; b=HN/7FjcE9nTjIdwaYtUtISp0ATtT4l7CAUBR1OStARv8z6QCoZw8ErReGoGIZVXhf jf0/bflrCab/tKspjk1KP108C8ukqhBdPpInMx9iFsHATsW2+2UkxsXyqJR6JRMtCu uHdS/0KVehh3Hocvx3VW0RPqG9xieBlZjI5LHfgo= Authentication-Results: mxback10o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva8-174eb672ffa9.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id MnRpKxYiDd-N1W0o5fM; Wed, 03 Jun 2020 11:23:01 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <5368a374070bfd622c4fb8b1360ded2534d76b2b.camel@yandex.ru> Subject: From: Konstantin Kharlamov To: 41682@debbugs.gnu.org Date: Wed, 03 Jun 2020 11:23:01 +0300 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sorry, a typo, this line: > 1. Run: emacs -Q --eval '(eval-after-load 'makefile-gmake-mode '(save-buffers-kill-emacs))' Should be: Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: yandex.ru] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [5.45.198.246 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (hi-angel[at]yandex.ru) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [5.45.198.246 listed in wl.mailspike.net] 2.0 BLANK_SUBJECT Subject is present but empty 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: 41682 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Sorry, a typo, this line: > 1. Run: emacs -Q --eval '(eval-after-load 'makefile-gmake-mode '(save-buffers-kill-emacs))' Should be: 1. emacs -Q --eval "(eval-after-load 'makefile-gmake-mode '(save- buffers-kill-emacs))" From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 03 06:21:26 2020 Received: (at 41682) by debbugs.gnu.org; 3 Jun 2020 10:21:26 +0000 Received: from localhost ([127.0.0.1]:42063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgQWT-0002wx-T4 for submit@debbugs.gnu.org; Wed, 03 Jun 2020 06:21:26 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:42820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgQWS-0002wb-1S for 41682@debbugs.gnu.org; Wed, 03 Jun 2020 06:21:24 -0400 Received: by mail-wr1-f50.google.com with SMTP id p5so1719586wrw.9 for <41682@debbugs.gnu.org>; Wed, 03 Jun 2020 03:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=sYgm2/jJIiDRMB/wLH6TFOpn8nKItvt1/0h0a7k0L4o=; b=sa+B/lwSMMe+MOES/u5X2QqifVLIIeK+wPWM4O4iPkRyKBzqc33bpV4gjOhLVCN32x h8v9dogVMWOCLbWIajgk3R28aup+IRlPRIhkShsYSq72+5vxOJeODD6/Cq3u1vD0Bqrx FJr7kjNjzcPv2sZWi52PHbVOO9fWM2TqsxxOkP4ked4G+8K2Qi/reoAD4qNsw+S44dyc PIOqU7TjtOlmkYRsaqA1K1b8WBUHozFaBPl58lDr/6TMjnwSveaEEO9JID0GX3qzOare 7soxlI71b3ZdLXKqzuATCTcIrVItD+lfiS50R1OU2qEvoic3y5Qah45XM3/6uT8riUW/ CDgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=sYgm2/jJIiDRMB/wLH6TFOpn8nKItvt1/0h0a7k0L4o=; b=ubv7DaCOfgvIrncQLXNjdG6g9YQ0FGo3KJGURDi+RHnKuuqbhWXHa3H0UaU0Qd99RI v8C1wBlxb4hR/ENXRLsE3kA3hwzphbPWlEse+7T9HqUFnuxhmqkCDtVLg6YKMpzgWXBw 1h+0OvHUmS65YVvflXXkPX0+8engDEE4bm6hw2BpL7BM50ILHlLugUEHWW/eXk1b407V NaQlw/26urZqfJiWJ1UYC7eNgi3yhoSDkF6kLv4LFKiA06mstmjpc6aBYsUXRs0usSyQ 3nMpW4xpcQL8oy04T3TRHmjC2GAm/gl/RVNh4UNXzFrrlb4KdZvsEjnXHNOxcw1TyUgp aUqg== X-Gm-Message-State: AOAM530H+Cyk1ZR+NDtNi0ZmsMHCReA98fhJ1mzLuUAC2OEx59+leA9m KC4qHzIPstMMWNnc4xTZjD9KzQ== X-Google-Smtp-Source: ABdhPJzpoCly88BBILRAFeB9KDL7UGDNZGXpeS2nrJZFtzPMf85oRkz31cDFJ/rDN3JUXUxjdMv6lw== X-Received: by 2002:adf:ab09:: with SMTP id q9mr29547704wrc.79.1591179678227; Wed, 03 Jun 2020 03:21:18 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id d18sm2615238wrn.34.2020.06.03.03.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 03:21:17 -0700 (PDT) From: "Basil L. Contovounesios" To: Konstantin Kharlamov Subject: Re: bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks References: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> Date: Wed, 03 Jun 2020 11:21:10 +0100 In-Reply-To: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> (Konstantin Kharlamov's message of "Wed, 03 Jun 2020 11:19:01 +0300") Message-ID: <87o8q01mcp.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41682 Cc: 41682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 41682 + notabug quit Konstantin Kharlamov writes: > Functions added with (eval-after-load 'makefile-gmake-mode =E2=80=A6) do = not > trigger when the mode is enabled I think you've misunderstood what eval-after-load does. 'makefile-gmake-mode' is a major mode function defined in the file make-mode.el which provides the named feature 'make-mode'. See (info "(elisp) Named Features") and (info "(elisp) Hooks for Loading"). https://www.gnu.org/software/emacs/manual/html_node/elisp/Named-Features.ht= ml https://www.gnu.org/software/emacs/manual/html_node/elisp/Hooks-for-Loading= .html eval-after-load, and its newer, preferred sibling with-eval-after-load, register some Lisp to be run when a file or named feature is or has already been loaded. If you want to register some Lisp to run only once, after make-mode.el is loaded (and makefile-gmake-mode has been defined), then you should write: (with-eval-after-load 'make-mode (foo) (bar)) If you want to register some Lisp to run every time makefile-gmake-mode is enabled, then you should write: (add-hook 'makefile-gmake-mode-hook #'foo) If you want to register some Lisp to run every time any make-mode.el major mode is enabled, then you should write: (add-hook 'makefile-mode-hook #'foo) Is there some other case you're trying to address, or can this bug be closed? --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 03 06:25:13 2020 Received: (at 41682) by debbugs.gnu.org; 3 Jun 2020 10:25:13 +0000 Received: from localhost ([127.0.0.1]:42092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgQa9-00038v-Dx for submit@debbugs.gnu.org; Wed, 03 Jun 2020 06:25:13 -0400 Received: from forward103j.mail.yandex.net ([5.45.198.246]:56445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgQa5-00034Y-Ox for 41682@debbugs.gnu.org; Wed, 03 Jun 2020 06:25:12 -0400 Received: from mxback14o.mail.yandex.net (mxback14o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::65]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 949D76742FCC; Wed, 3 Jun 2020 13:25:02 +0300 (MSK) Received: from iva1-bc1861525829.qloud-c.yandex.net (iva1-bc1861525829.qloud-c.yandex.net [2a02:6b8:c0c:a0e:0:640:bc18:6152]) by mxback14o.mail.yandex.net (mxback/Yandex) with ESMTP id Cs5Syr9gX2-P2dqFTd0; Wed, 03 Jun 2020 13:25:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1591179902; bh=SlSDHlAN05v/s5vHiDOdrYDaWt02UgLu6pSgrj85Jyw=; h=In-Reply-To:Cc:To:From:Subject:References:Date:Message-ID; b=oJQXGsh8ADb1U413pWvy2SvTpp3zXksqAbPHblcqrI9jmsgsWZqkLoTKq9kVcajRL AAHyRGtttc/3QW4wXOQMGpzw6V44+MkqiCeuUcKWSgGlpS3bRLBvYfgfdtCVg++HNy hOK/9SOz29NM5CdAJPqoEDvGDii6+o1JVuynR/kc= Authentication-Results: mxback14o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva1-bc1861525829.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id LdQKAsM8jU-P14iKD6R; Wed, 03 Jun 2020 13:25:01 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <5033bb634ff86730d34392115282169363298dc1.camel@yandex.ru> Subject: Re: bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks From: Konstantin Kharlamov To: "Basil L. Contovounesios" Date: Wed, 03 Jun 2020 13:25:01 +0300 In-Reply-To: <87o8q01mcp.fsf@tcd.ie> References: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> <87o8q01mcp.fsf@tcd.ie> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41682 Cc: 41682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, 2020-06-03 at 11:21 +0100, Basil L. Contovounesios wrote: > tags 41682 + notabug > quit > > Konstantin Kharlamov writes: > > > Functions added with (eval-after-load 'makefile-gmake-mode …) do > > not > > trigger when the mode is enabled > > I think you've misunderstood what eval-after-load does. > > 'makefile-gmake-mode' is a major mode function defined in the file > make-mode.el which provides the named feature 'make-mode'. See > (info "(elisp) Named Features") and (info "(elisp) Hooks for > Loading"). > > https://www.gnu.org/software/emacs/manual/html_node/elisp/Named-Features.html > https://www.gnu.org/software/emacs/manual/html_node/elisp/Hooks-for-Loading.html > > eval-after-load, and its newer, preferred sibling with-eval-after- > load, > register some Lisp to be run when a file or named feature is or has > already been loaded. > > If you want to register some Lisp to run only once, after make- > mode.el > is loaded (and makefile-gmake-mode has been defined), then you should > write: > > (with-eval-after-load 'make-mode > (foo) > (bar)) > > If you want to register some Lisp to run every time makefile-gmake- > mode > is enabled, then you should write: > > (add-hook 'makefile-gmake-mode-hook #'foo) > > If you want to register some Lisp to run every time any make-mode.el > major mode is enabled, then you should write: > > (add-hook 'makefile-mode-hook #'foo) > > Is there some other case you're trying to address, or can this bug be > closed? Thank you for through explanation! Sure, this bug can be closed. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 03 06:30:34 2020 Received: (at 41682-done) by debbugs.gnu.org; 3 Jun 2020 10:30:34 +0000 Received: from localhost ([127.0.0.1]:42097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgQfK-0003pC-4B for submit@debbugs.gnu.org; Wed, 03 Jun 2020 06:30:34 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:39364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgQfI-0003i9-J1 for 41682-done@debbugs.gnu.org; Wed, 03 Jun 2020 06:30:33 -0400 Received: by mail-wr1-f49.google.com with SMTP id t18so1768870wru.6 for <41682-done@debbugs.gnu.org>; Wed, 03 Jun 2020 03:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=3VAraKr/40XIQHvFAXupgDNje5sEUNudZH4vkuqlU/A=; b=aWyzyYbQB0Ae5YqJzvyvxToY/EvhE2ZZof3gcAzD9lAAYG1SkW0OtzE0ZEpkKdY7qg JgRrIqkoXEQSjkxinGW3KujuXpqZg1e1TrSL/0ElUHDMbMVLmGTXl83mWBTepN/RF4Lx 5smn8Ls/5Xo4QNAuoG5YxbdGDUW/zrKE4y3OwnPjHZ+OnlQkoGSNyu41pNZiNe0l5rO+ yIq9pOV7+txhPx+pbP5JjtOw3UFcoOTNGLbGOAVLXizUrhxwHs2HWY+z6TnjRF0PGYbp 3wwNG5QUTAjdkjDgtB1cdjqhcUfV/ua8/91KN4csMwE+fVuAImUJiwnAT23Jx4oSiha2 lOHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=3VAraKr/40XIQHvFAXupgDNje5sEUNudZH4vkuqlU/A=; b=lPdlOo4yTuWaYARwdfSmwbpyn88EDQnW9UrRfYgE2b4e2GOJWCGub7+dK3g+8RAYkr t9IQ+IrrDk7FkosXVLSBv8NK66jM+rwYAVVCdpDKEuDKxYZNVy3QP+HPlFIdUFMYCVnu cNk0mOjBxCc3VPlU48PYdtqxgaEE75ShFPB/Sbe3GzU+pOD688twd2UwTg3Tk41wjsHA HdGGcstl5Kd+dHR8HMIDv1LZFynyHRf0EVvL6Z1kjGOEQnS6vIdhLngo9vGV/uhw02PW 1/lv8qhpJST8dwNmFlM3f2IjH3XlhF5KZ/StowryRcjsgj8j/eg80yYI6P4f9VsecIGH 7PTA== X-Gm-Message-State: AOAM5312nd6F2ysJnu1X8O3Cu8uZ/Kx6Vv4KMv7SeA2ygSx3Hx+yCrTi bo/EQvP2AK/Ef1Jent/PJ54pqw== X-Google-Smtp-Source: ABdhPJyCmjpFN9Zl54lZxRzKMWY+KCnBHs8BkHwUEqMTV1nesfM4DoW7pO4aej0u9NB45ITr9I9JGw== X-Received: by 2002:adf:f44b:: with SMTP id f11mr10855480wrp.165.1591180226804; Wed, 03 Jun 2020 03:30:26 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id q1sm2218762wmc.15.2020.06.03.03.30.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 03:30:26 -0700 (PDT) From: "Basil L. Contovounesios" To: Konstantin Kharlamov Subject: Re: bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks References: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> <87o8q01mcp.fsf@tcd.ie> <5033bb634ff86730d34392115282169363298dc1.camel@yandex.ru> Date: Wed, 03 Jun 2020 11:30:19 +0100 In-Reply-To: <5033bb634ff86730d34392115282169363298dc1.camel@yandex.ru> (Konstantin Kharlamov's message of "Wed, 03 Jun 2020 13:25:01 +0300") Message-ID: <877dwo1lxg.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41682-done Cc: 41682-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Konstantin Kharlamov writes: > On Wed, 2020-06-03 at 11:21 +0100, Basil L. Contovounesios wrote: > >> Is there some other case you're trying to address, or can this bug be >> closed? > > Thank you for through explanation! Sure, this bug can be closed. Thanks for confirming, closing. -- Basil From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 06 17:39:41 2020 Received: (at 41682) by debbugs.gnu.org; 6 Jun 2020 21:39:42 +0000 Received: from localhost ([127.0.0.1]:52605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhgXV-0005Yj-K7 for submit@debbugs.gnu.org; Sat, 06 Jun 2020 17:39:41 -0400 Received: from forward100p.mail.yandex.net ([77.88.28.100]:32952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhgXS-0005YT-O4 for 41682@debbugs.gnu.org; Sat, 06 Jun 2020 17:39:39 -0400 Received: from mxback28o.mail.yandex.net (mxback28o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::79]) by forward100p.mail.yandex.net (Yandex) with ESMTP id A2B3E598040C; Sun, 7 Jun 2020 00:39:31 +0300 (MSK) Received: from sas2-ee0cb368bd51.qloud-c.yandex.net (sas2-ee0cb368bd51.qloud-c.yandex.net [2a02:6b8:c08:b7a3:0:640:ee0c:b368]) by mxback28o.mail.yandex.net (mxback/Yandex) with ESMTP id X6Nm6WuvY0-dVeu8xRb; Sun, 07 Jun 2020 00:39:31 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1591479571; bh=4sbIhXm0PtQMC0U6nGhn2kNqCmGJ/l4aQhUDLcxoy+c=; h=In-Reply-To:Cc:To:From:Subject:References:Date:Message-ID; b=rxSjdmVB5ha7tSkGvc/PdPJHz8drAeaZJ6Zb0nWpdUD7FggoSE6QN5pmPE2VqUlr5 qyQ2vdKco2K7M1FXbvITkwXc7wvgPur5A7fd3YD1IiRgMSK+pYrLK9bmGnQDrxvcGq 41V12W+Xr/IegCPi88DKBk4jfNI3dPAadyGcXtlI= Authentication-Results: mxback28o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by sas2-ee0cb368bd51.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id KQDir2v2k8-dUWeTQVW; Sun, 07 Jun 2020 00:39:30 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <37002b9ea3a869d7498f683cc5b573e8867cfcab.camel@yandex.ru> Subject: Re: bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks From: Konstantin Kharlamov To: "Basil L. Contovounesios" Date: Sun, 07 Jun 2020 00:39:30 +0300 In-Reply-To: <87o8q01mcp.fsf@tcd.ie> References: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> <87o8q01mcp.fsf@tcd.ie> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41682 Cc: 41682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, 2020-06-03 at 11:21 +0100, Basil L. Contovounesios wrote: > tags 41682 + notabug > quit > > Konstantin Kharlamov writes: > > > Functions added with (eval-after-load 'makefile-gmake-mode …) do > > not > > trigger when the mode is enabled > > I think you've misunderstood what eval-after-load does. > > 'makefile-gmake-mode' is a major mode function defined in the file > make-mode.el which provides the named feature 'make-mode'. See > (info "(elisp) Named Features") and (info "(elisp) Hooks for > Loading"). > > https://www.gnu.org/software/emacs/manual/html_node/elisp/Named-Features.html > https://www.gnu.org/software/emacs/manual/html_node/elisp/Hooks-for-Loading.html > > eval-after-load, and its newer, preferred sibling with-eval-after- > load, > register some Lisp to be run when a file or named feature is or has > already been loaded. > > If you want to register some Lisp to run only once, after make- > mode.el > is loaded (and makefile-gmake-mode has been defined), then you should > write: > > (with-eval-after-load 'make-mode > (foo) > (bar)) > > If you want to register some Lisp to run every time makefile-gmake- > mode > is enabled, then you should write: > > (add-hook 'makefile-gmake-mode-hook #'foo) > > If you want to register some Lisp to run every time any make-mode.el > major mode is enabled, then you should write: > > (add-hook 'makefile-mode-hook #'foo) > > Is there some other case you're trying to address, or can this bug be > closed? > Thank you, I migrated my emacs config to use the `with-eval-after-load` you suggested, but stumbled upon a problem that it doesn't seem to work with python-mode. I tried as an argument `'python`, `'python-mode`, ``python.el`, `"python"`, `"python.el"` — none of that works for me. The code I'm trying to execute is simply: (with-eval-after-load 'python '(modify-syntax-entry ?_ "w" python-mode-syntax-table)) Simply removing the "with-" makes it work. Is there anything special about this macro I should know? From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 06 17:41:37 2020 Received: (at 41682) by debbugs.gnu.org; 6 Jun 2020 21:41:37 +0000 Received: from localhost ([127.0.0.1]:52622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhgZM-0005dB-OC for submit@debbugs.gnu.org; Sat, 06 Jun 2020 17:41:37 -0400 Received: from forward101j.mail.yandex.net ([5.45.198.241]:35759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhgZK-0005cq-Hd for 41682@debbugs.gnu.org; Sat, 06 Jun 2020 17:41:35 -0400 Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward101j.mail.yandex.net (Yandex) with ESMTP id D1C3D1BE039F; Sun, 7 Jun 2020 00:41:27 +0300 (MSK) Received: from myt6-9bdf92ffd111.qloud-c.yandex.net (myt6-9bdf92ffd111.qloud-c.yandex.net [2a02:6b8:c12:468a:0:640:9bdf:92ff]) by mxback20j.mail.yandex.net (mxback/Yandex) with ESMTP id XS2APGASST-fR3S8Ok3; Sun, 07 Jun 2020 00:41:27 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1591479687; bh=yEAvH2zi+SiMXp/yFKJehv9d30i+O9UGcV7WrYRbjko=; h=In-Reply-To:Cc:To:From:Subject:References:Date:Message-ID; b=wFKTLECMOK/nalb2RSHe4MuJZ/PGJE8qapali3PDzISuPtqlEHGwuLdUafV6tbnZS pW+oCiholCxHEhcEu3op8AUOXf97xAbmLe0ILoL0eMnYY5MtF5mBSF3l2Hg2Svwooc cE0z161Q0XI0GdOQZXNUjbjdMlsAoTGxntCBWK+0= Authentication-Results: mxback20j.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt6-9bdf92ffd111.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 8sf54ugYQa-fRXGVsH2; Sun, 07 Jun 2020 00:41:27 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <550f45677fb17c42053fe5e39aeb8dcd0c98d5ff.camel@yandex.ru> Subject: Re: bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks From: Konstantin Kharlamov To: "Basil L. Contovounesios" Date: Sun, 07 Jun 2020 00:41:26 +0300 In-Reply-To: <37002b9ea3a869d7498f683cc5b573e8867cfcab.camel@yandex.ru> References: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> <87o8q01mcp.fsf@tcd.ie> <37002b9ea3a869d7498f683cc5b573e8867cfcab.camel@yandex.ru> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41682 Cc: 41682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, 2020-06-07 at 00:39 +0300, Konstantin Kharlamov wrote: > On Wed, 2020-06-03 at 11:21 +0100, Basil L. Contovounesios wrote: > > tags 41682 + notabug > > quit > > > > Konstantin Kharlamov writes: > > > > > Functions added with (eval-after-load 'makefile-gmake-mode …) do > > > not > > > trigger when the mode is enabled > > > > I think you've misunderstood what eval-after-load does. > > > > 'makefile-gmake-mode' is a major mode function defined in the file > > make-mode.el which provides the named feature 'make-mode'. See > > (info "(elisp) Named Features") and (info "(elisp) Hooks for > > Loading"). > > > > https://www.gnu.org/software/emacs/manual/html_node/elisp/Named-Features.html > > https://www.gnu.org/software/emacs/manual/html_node/elisp/Hooks-for-Loading.html > > > > eval-after-load, and its newer, preferred sibling with-eval-after- > > load, > > register some Lisp to be run when a file or named feature is or has > > already been loaded. > > > > If you want to register some Lisp to run only once, after make- > > mode.el > > is loaded (and makefile-gmake-mode has been defined), then you > > should > > write: > > > > (with-eval-after-load 'make-mode > > (foo) > > (bar)) > > > > If you want to register some Lisp to run every time makefile-gmake- > > mode > > is enabled, then you should write: > > > > (add-hook 'makefile-gmake-mode-hook #'foo) > > > > If you want to register some Lisp to run every time any make- > > mode.el > > major mode is enabled, then you should write: > > > > (add-hook 'makefile-mode-hook #'foo) > > > > Is there some other case you're trying to address, or can this bug > > be > > closed? > > > > Thank you, I migrated my emacs config to use the `with-eval-after- > load` > you suggested, but stumbled upon a problem that it doesn't seem to > work > with python-mode. I tried as an argument `'python`, `'python-mode`, > ``python.el`, `"python"`, `"python.el"` — none of that works for me. > The code I'm trying to execute is simply: > > (with-eval-after-load 'python > '(modify-syntax-entry ?_ "w" python-mode-syntax-table)) > > Simply removing the "with-" makes it work. Is there anything special > about this macro I should know? I should add, according to documentation at least one of `'python.el` or `"python.el"` should be working. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 06 18:26:22 2020 Received: (at 41682) by debbugs.gnu.org; 6 Jun 2020 22:26:22 +0000 Received: from localhost ([127.0.0.1]:52677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhhGg-0002Ww-Jx for submit@debbugs.gnu.org; Sat, 06 Jun 2020 18:26:22 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:54087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhhGe-0002Wi-Jy for 41682@debbugs.gnu.org; Sat, 06 Jun 2020 18:26:21 -0400 Received: by mail-wm1-f44.google.com with SMTP id l26so11733705wme.3 for <41682@debbugs.gnu.org>; Sat, 06 Jun 2020 15:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=QAmB3m8ETkC64w67WyILXZdGNsQvuJWG7kHDJ9sMfbw=; b=Gcl6oPM28mMeeXW0pt3TQ7GBz3IcVp46IGWcQR+MimuAl8IpE+V7uRfAOAvu1UtrLr ssa9mnQIVSNs8N6gN0O+NzJaiokhO9Yex8jXRTcxkdGU6sa/+Iq/E4wr51QFlZJyoRyu NmgYJrEN3gd9JUe8RHacLRnvpQQUvdJWDT/V+FtDiE7pp0AycLS6SuYaa0a1lPmOa47e Q9TE0MD/GBqfHtEi2mvMsNSliD09AWT/0SYUDR3w2nXY1cuXBJzzBdewPYyNd7ZqzuEl kzDnLc4sjPDrCeRFQ8Jcj8hrpY4sbDiceQ6kSqp/NAGcdah3PRaZN07jF57XeG3uC8tT dnkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=QAmB3m8ETkC64w67WyILXZdGNsQvuJWG7kHDJ9sMfbw=; b=DxUmuOilH46WmN2memw7s/1d26SK043ruWpSAUQ0L1rZmK0RCYgyx7YGfbVlsZN53/ nPVoFSQcAla1zw42ZjcBO60B+SfTy8iyGwj0V6vzJWeoGTJmaDTkJTcpykiP7BnPl8MJ OGarU7Zzg4qLlrdx0zG59mOnqns0M7nlwbPb5pbNzNkgeuaq8rGNCrDs26a8MGrGYP7K GDbUx/1yPe9n42Rdf2l1vA51ENliad+azF0o7Gf5duo0MQqrAd9j/gLmP9B3OitXXbGy B2o360EbbQZslL69rM3mFsO8SK3mDvSWwWK8wIteZjSS25Oq3meZQDmih0ZaD3ilT2Gp 4QJw== X-Gm-Message-State: AOAM533aYGrA05Q8s5XRec0cii8MH7ZhSmXbP3ToevJHrkxqRye3IgxH aPq9Fzw5I9UQZ+scrDYE6xfG9g== X-Google-Smtp-Source: ABdhPJx8IdnfVCPj/sOw8itZs5N4Zs2TvQUvB0wviA3B0YB1LFITjz8Nlb1evcydU0fDLzBf1rNUSQ== X-Received: by 2002:a05:600c:4410:: with SMTP id u16mr8942702wmn.88.1591482374736; Sat, 06 Jun 2020 15:26:14 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id k64sm17936278wmf.34.2020.06.06.15.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2020 15:26:14 -0700 (PDT) From: "Basil L. Contovounesios" To: Konstantin Kharlamov Subject: Re: bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks References: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> <87o8q01mcp.fsf@tcd.ie> <37002b9ea3a869d7498f683cc5b573e8867cfcab.camel@yandex.ru> Date: Sat, 06 Jun 2020 23:26:12 +0100 In-Reply-To: <37002b9ea3a869d7498f683cc5b573e8867cfcab.camel@yandex.ru> (Konstantin Kharlamov's message of "Sun, 07 Jun 2020 00:39:30 +0300") Message-ID: <87lfkzrfuj.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41682 Cc: 41682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Konstantin Kharlamov writes: > Thank you, I migrated my emacs config to use the `with-eval-after-load`=20 > you suggested, but stumbled upon a problem that it doesn't seem to work > with python-mode. I tried as an argument `'python`, `'python-mode`, > ``python.el`, `"python"`, `"python.el"` =E2=80=94 none of that works for = me. > The code I'm trying to execute is simply: > > (with-eval-after-load 'python > '(modify-syntax-entry ?_ "w" python-mode-syntax-table)) > > Simply removing the "with-" makes it work. Is there anything special > about this macro I should know?=20 Yes, its BODY should not be quoted: (with-eval-after-load 'python (modify-syntax-entry ?_ "w" python-mode-syntax-table)) --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 06 18:36:30 2020 Received: (at 41682) by debbugs.gnu.org; 6 Jun 2020 22:36:30 +0000 Received: from localhost ([127.0.0.1]:52694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhhQU-0002ms-8q for submit@debbugs.gnu.org; Sat, 06 Jun 2020 18:36:30 -0400 Received: from forward100p.mail.yandex.net ([77.88.28.100]:49757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhhQR-0002ma-AU for 41682@debbugs.gnu.org; Sat, 06 Jun 2020 18:36:28 -0400 Received: from mxback27o.mail.yandex.net (mxback27o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::78]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 300125980711; Sun, 7 Jun 2020 01:36:20 +0300 (MSK) Received: from sas2-ee0cb368bd51.qloud-c.yandex.net (sas2-ee0cb368bd51.qloud-c.yandex.net [2a02:6b8:c08:b7a3:0:640:ee0c:b368]) by mxback27o.mail.yandex.net (mxback/Yandex) with ESMTP id I4GHGcHpHi-aJlG9vFo; Sun, 07 Jun 2020 01:36:20 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1591482980; bh=+CHV3peYTvm3Ny/whqcuh4he6bCyP1cJX9guUx1PVAI=; h=In-Reply-To:Cc:To:From:Subject:References:Date:Message-ID; b=LuyUZPFiatbmjqEwNIM67tjzIV8CHaX8eBdYQqC44zV7uoVH3mMlvQCXTDEG1ZPZn P4Mv1JSLheaVASCnqCaHa1N+m9prVCvknL90Z4B7rHN5sCVUkuk1ZgjGANnNypIvoY wecWvp9+VC7/BE5o5XzAAg+bR92zBXe5yFV5QsE4= Authentication-Results: mxback27o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by sas2-ee0cb368bd51.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 6DclKTRo2U-aIWehkFp; Sun, 07 Jun 2020 01:36:18 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: Subject: Re: bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks From: Konstantin Kharlamov To: "Basil L. Contovounesios" Date: Sun, 07 Jun 2020 01:36:18 +0300 In-Reply-To: <87lfkzrfuj.fsf@tcd.ie> References: <7874555c5ba73c3b6b7c9c07e6bde015aa1c7fc7.camel@yandex.ru> <87o8q01mcp.fsf@tcd.ie> <37002b9ea3a869d7498f683cc5b573e8867cfcab.camel@yandex.ru> <87lfkzrfuj.fsf@tcd.ie> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41682 Cc: 41682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thank you! On Sat, 2020-06-06 at 23:26 +0100, Basil L. Contovounesios wrote: > Konstantin Kharlamov writes: > > > Thank you, I migrated my emacs config to use the `with-eval-after- > > load` > > you suggested, but stumbled upon a problem that it doesn't seem to > > work > > with python-mode. I tried as an argument `'python`, `'python-mode`, > > ``python.el`, `"python"`, `"python.el"` — none of that works for > > me. > > The code I'm trying to execute is simply: > > > > (with-eval-after-load 'python > > '(modify-syntax-entry ?_ "w" python-mode-syntax-table)) > > > > Simply removing the "with-" makes it work. Is there anything > > special > > about this macro I should know? > > Yes, its BODY should not be quoted: > > (with-eval-after-load 'python > (modify-syntax-entry ?_ "w" python-mode-syntax-table)) From unknown Mon Aug 18 09:05:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 05 Jul 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator