all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Ihor Radchenko <yantar92@posteo.net>, 70671@debbugs.gnu.org
Subject: bug#70671: 30.0.50; mhtml-mode ignores delay-mode-hooks
Date: Thu, 02 May 2024 09:15:45 -0400	[thread overview]
Message-ID: <jwvle4sbbj2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <86ttjglexh.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 May 2024 12:51:38 +0300")

>> mhtml-mode unconditionally runs prog-mode-hooks:
>> 
>> ;; This is sort of a prog-mode as well as a text mode.
>>   (run-hooks 'prog-mode-hook)
>> 
>> As a result, running
>> 
>> (delay-mode-hooks (mhtml-mode)) does not prevent prog-mode-hook from
>> being delayed.
>> 
>> May mhtml-mode be changed to use (run-mode-hooks 'prog-mode-hook)
>> instead, so that `delay-mode-hooks' is honoured?
>> 
>> 
>> Original report:
>> https://orgmode.org/list/87tu21hsuk.fsf@localhost
>
> Stefan, WDYT?

It should use `run-mode-hooks`, indeed, thanks,


        Stefan






  reply	other threads:[~2024-05-02 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 13:25 bug#70671: 30.0.50; mhtml-mode ignores delay-mode-hooks Ihor Radchenko
2024-05-02  9:51 ` Eli Zaretskii
2024-05-02 13:15   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-05-03  7:48     ` Ihor Radchenko
2024-05-03 15:03       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

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

  git send-email \
    --in-reply-to=jwvle4sbbj2.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=70671@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=yantar92@posteo.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.