help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is special about the minibuffer in regard to font locking?


From: Stefan Monnier
Subject: Re: What is special about the minibuffer in regard to font locking?
Date: Sun, 23 Jan 2022 11:30:13 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

ndame via Users list for the GNU Emacs text editor [2022-01-23 08:25:30] wrote:
> There is an existing bug report about font locking in the minibuffer
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=46092
> and I'm wondering how the minibuffer is special which prevents font locking 
> there.

I don't think there's anything fundamental here.
Probably just code like:

    (define-minor-mode font-lock-mode
    [...]
      (when (or noninteractive (eq (aref (buffer-name) 0) ?\s))
        (setq font-lock-mode nil))
    [...]


-- Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]