GNU bug report logs - #48752
28.0.50; Feature request: Hook hide-ifdef into font-lock

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Sun, 30 May 2021 20:27:01 UTC

Severity: wishlist

Found in version 28.0.50

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 48752 <at> debbugs.gnu.org, Ergus <spacibba <at> aol.com>
Subject: bug#48752: 28.0.50; Feature request: Hook hide-ifdef into font-lock
Date: Mon, 31 May 2021 11:44:01 -0400
> As mentioned on emacs-devel, how exactly to automate this should be
> carefully thought-out, because blindly using the JIT font-lock
> mechanism will cause code blocks to appear and disappear several time
> as long as the user types the preprocessor directive.

When the code is actually made invisible the appear/disappear could be
quite annoying, indeed, but I think Ergus is mostly concerned about the
case where `hide-ifdef-shadow` is activated, where it would make sense
to make it behave like comments and strings, I think.


        Stefan





This bug report was last modified 4 years and 21 days ago.

Previous Next


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