unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* "#if 1" in hide-ifdef-mode
@ 2003-05-15 23:23 Kin Cho
  2003-05-16 19:45 ` Stefan Monnier
       [not found] ` <mailman.6323.1053114531.21513.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Kin Cho @ 2003-05-15 23:23 UTC (permalink / raw)


I opened a .c file, set hide-ifdef-initially to t, then turn on
hide-ifdef-mode.  Lines bracketed by "#if 1" are hidden -- this
is not right.

-kin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "#if 1" in hide-ifdef-mode
       [not found] <mailman.6275.1053041631.21513.bug-gnu-emacs@gnu.org>
@ 2003-05-15 23:58 ` Kin Cho
  0 siblings, 0 replies; 4+ messages in thread
From: Kin Cho @ 2003-05-15 23:58 UTC (permalink / raw)


This works around the problem, but hideif's expr evaluator should
be fixed so this case works without the workaround.

hideif.el:
change
(defvar hide-ifdef-env nil
to
(defvar hide-ifdef-env (list '(\1 t))

-kin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "#if 1" in hide-ifdef-mode
  2003-05-15 23:23 "#if 1" in hide-ifdef-mode Kin Cho
@ 2003-05-16 19:45 ` Stefan Monnier
       [not found] ` <mailman.6323.1053114531.21513.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2003-05-16 19:45 UTC (permalink / raw)


> I opened a .c file, set hide-ifdef-initially to t, then turn on
> hide-ifdef-mode.  Lines bracketed by "#if 1" are hidden -- this
> is not right.

You might want to try the hideif.el from the CVS repository.
I've significantly improved its expression evaluator and
it should handle your example just fine.


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "#if 1" in hide-ifdef-mode
       [not found] ` <mailman.6323.1053114531.21513.bug-gnu-emacs@gnu.org>
@ 2003-05-16 21:56   ` Kin Cho
  0 siblings, 0 replies; 4+ messages in thread
From: Kin Cho @ 2003-05-16 21:56 UTC (permalink / raw)


"Stefan Monnier" <monnier+gmane.emacs.bugs/news/@rum.cs.yale.edu> writes:

> You might want to try the hideif.el from the CVS repository.
> I've significantly improved its expression evaluator and
> it should handle your example just fine.

The latest version 1.47 is too bleeding-edge --
hif-show-ifdef-region calls an undefined (in 21.3) function
remove-overlays.

Is that a way to emulate remove-overlays in 21.3?  If there is,
will the rest of 1.47 work in 21.3?

Thanks.

-kin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-16 21:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 23:23 "#if 1" in hide-ifdef-mode Kin Cho
2003-05-16 19:45 ` Stefan Monnier
     [not found] ` <mailman.6323.1053114531.21513.bug-gnu-emacs@gnu.org>
2003-05-16 21:56   ` Kin Cho
     [not found] <mailman.6275.1053041631.21513.bug-gnu-emacs@gnu.org>
2003-05-15 23:58 ` Kin Cho

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).