GNU bug report logs - #68648
30.0.50; read-only-mode-hook's are not executed when buffer-read-only is t

Previous Next

Package: emacs;

Reported by: Björn Bidar <bjorn.bidar <at> thaodan.de>

Date: Sun, 21 Jan 2024 20:36:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: bjorn.bidar <at> thaodan.de, 68648 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: bug#68648: 30.0.50; read-only-mode-hook's are not executed when buffer-read-only is t
Date: Sat, 03 Feb 2024 11:28:42 -0500
> On second thought, would it be okay to just call the mode hook where
> we set buffer-read-only in after-find-file?

It's probably an acceptable middle ground until someone goes through the
trouble of sorting out how to make the code call `read-only-mode`.
Even better if the `run-hooks` is accompanied with a FIXME explaining
that :-)


        Stefan





This bug report was last modified 1 year and 103 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.