From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Dir-Locals + Editorconfig Changes in Emacs 26
Date: Wed, 04 Oct 2017 20:00:16 +0300 [thread overview]
Message-ID: <83r2uiyhjz.fsf@gnu.org> (raw)
In-Reply-To: <87poa2532u.fsf@gmail.com> (message from Jay Kamat on Wed, 04 Oct 2017 11:45:45 -0400)
> From: Jay Kamat <jaygkamat@gmail.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Wed, 04 Oct 2017 11:45:45 -0400
>
> > Could it be that the major mode hook is now called twice, and
> > Editorconfig fails to notice that one of these calls is to turn the
> > mode off?
>
> Is `after-change-major-mode' getting called twice in emacs 26, but not
> 25?
No, the mode is called twice, first time to turn it off, then to turn
it on. The mode hook is also called twice, for the same reason. I
don't know what that means for after-change-major-mode functions, but
maybe they are also called twice
> I can't seem to find a related news entry about the change, could
> you point me to more information about that?
I have no more information about that than what I told. You should be
able to see whether after-change-major-mode is called twice by putting
some message there, or with Edebug.
> I took a look at the implementation of `after-change-major-mode', and I
> found `change-major-mode-after-body-hook' nearby, which seems to do what
> I want at a first glance (running hooks before dir-locals is set). Does
> changing the hook seem like the proper way to solve this?
Sorry, I don't know, since I have no idea what editorconfig wants to
do.
prev parent reply other threads:[~2017-10-04 17:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-02 17:55 Dir-Locals + Editorconfig Changes in Emacs 26 Jay Kamat
2017-10-03 15:39 ` Eli Zaretskii
2017-10-04 15:45 ` Jay Kamat
2017-10-04 17:00 ` Eli Zaretskii [this message]
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=83r2uiyhjz.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.
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).