unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Konstantin Kharlamov <hi-angel@yandex.ru>
Cc: 41682@debbugs.gnu.org
Subject: bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks
Date: Sat, 06 Jun 2020 23:26:12 +0100	[thread overview]
Message-ID: <87lfkzrfuj.fsf@tcd.ie> (raw)
In-Reply-To: <37002b9ea3a869d7498f683cc5b573e8867cfcab.camel@yandex.ru> (Konstantin Kharlamov's message of "Sun, 07 Jun 2020 00:39:30 +0300")

Konstantin Kharlamov <hi-angel@yandex.ru> 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))

-- 
Basil





  parent reply	other threads:[~2020-06-06 22:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03  8:19 bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks Konstantin Kharlamov
2020-06-03  8:23 ` bug#41682: Konstantin Kharlamov
2020-06-03 10:21 ` bug#41682: makefile-gmake-mode does not trigger "eval-after-load"'s hooks Basil L. Contovounesios
2020-06-03 10:25   ` Konstantin Kharlamov
2020-06-03 10:30     ` Basil L. Contovounesios
2020-06-06 21:39   ` Konstantin Kharlamov
2020-06-06 21:41     ` Konstantin Kharlamov
2020-06-06 22:26     ` Basil L. Contovounesios [this message]
2020-06-06 22:36       ` Konstantin Kharlamov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfkzrfuj.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=41682@debbugs.gnu.org \
    --cc=hi-angel@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).