GNU bug report logs - #71103
29.3; hide-ifdef

Previous Next

Package: emacs;

Reported by: Devon Sean McCullough <Emacs-hacker2023 <at> jovi.net>

Date: Tue, 21 May 2024 22:18:02 UTC

Severity: normal

Found in version 29.3

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Devon Sean McCullough <Emacs-hacker2023 <at> jovi.net>
Cc: 71103 <at> debbugs.gnu.org
Subject: bug#71103: 29.3; hide-ifdef
Date: Wed, 22 May 2024 15:13:00 +0300
> Date: Tue, 21 May 2024 17:16:46 -0500
> From: Devon Sean McCullough <Emacs-hacker2023 <at> jovi.net>
> 
> $ Open -n -a /Applications/Emacs.app --args -Q --eval '(find-file 
> "/tmp/c.c")' --eval '(insert "int one;\n#ifdef X\nint two;\n#else\nint 
> three;\n#endif\nint four;\n")' --eval '(set-buffer-modified-p nil)' -f 
> hide-ifdef-mode
> 
> Buffer c.c displays
> 
> int one;
> #ifdef X
> int two;
> #else
> int three;
> #endif
> int four;
> 
> but one of those lines should be invisible.

Should it?  Since hide-ifdef-initially is nil by default, the initial
display hides nothing.  If you type "M-x hide-ifdefs", it will hide
some of the #ifdefs.

I see no bug here.




This bug report was last modified 143 days ago.

Previous Next


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