[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37137: Setting font-lock-case-fold-search to t causes hangs on certa
From: |
Stefan Monnier |
Subject: |
bug#37137: Setting font-lock-case-fold-search to t causes hangs on certain types in c-mode |
Date: |
Mon, 02 Sep 2019 08:50:12 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I inherited this .emacs file from someone else who had this
> set. I'm guessing it used to be customizable?
AFAICT it's never been custom-izable, and it really would be weird for
it to be. I think it's more likely that this custom-set-variables was
hand-edited.
> I can just change the regexps I am using in
> font-lock-add-keywords.
That's a much safer approach. You can also do
(add-hook '<foo>-mode-hook
(lambda ()
(setq-local font-lock-case-fold-search t)))
for the specific mode where you need it: it may break the font-locking
of that mode, but if it does, at least the breakage will be limited to
that mode.
Stefan