* hs-hide-level fails to hide blocks that begin on line another block ended on
@ 2004-01-23 1:28 Britton Kerin
0 siblings, 0 replies; only message in thread
From: Britton Kerin @ 2004-01-23 1:28 UTC (permalink / raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1144 bytes --]
The file test_source.c (also attached) looks like this:
if ( some_condition ) {
do_some_stuff ();
} else {
do_some_other_stuff ();
}
The following commands
alitak$ 'emacs' -q test_source.c
M-x hs-minor-mode
M-x hs-hide-level
Results in a buffer display that looks like this:
if ( some_condition ) {...
do_some_other_stuff ();
}
It would be better to hide both the if and the else blocks in this
case. If the file test_source.c is rewritten to look like this:
if ( some_condition ) {
do_some_stuff ();
} else
{
do_some_other_stuff ();
}
Then we get this behavior:
alitak$ 'emacs' -q test_source.c
M-x hs-minor-mode
M-x hs-hide-level
Show just
if ( some_condition ) ...
in the buffer, but moving to the beginning of that line and doing
M-x hs-show-block gives:
if ( some_condition )
{
do_some_stuff ();
} else ...
In this case it would be better if both blocks were restored.
Emacs version:
GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2004-01-22 on alitak.asf.alaska.edu
Configuration command line:
./configure --prefix=/home/bkerin/local
Source modifications: None
Britton Kerin
[-- Attachment #2: Type: TEXT/PLAIN, Size: 90 bytes --]
if ( some_condition ) {
do_some_stuff ();
} else {
do_some_other_stuff ();
}
[-- Attachment #3: Type: text/plain, Size: 148 bytes --]
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-23 1:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-23 1:28 hs-hide-level fails to hide blocks that begin on line another block ended on Britton Kerin
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.