From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Britton Kerin Newsgroups: gmane.emacs.bugs Subject: hs-hide-level fails to hide blocks that begin on line another block ended on Date: Thu, 22 Jan 2004 16:28:37 -0900 (AKST) Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-443943081-1818813180-1074808134=:2999" X-Trace: sea.gmane.org 1074821478 23758 80.91.224.253 (23 Jan 2004 01:31:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2004 01:31:18 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 23 02:31:10 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AjqA9-0004VF-00 for ; Fri, 23 Jan 2004 02:31:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ajq8w-00018k-Ff for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2004 20:29:54 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ajq8c-0000gu-Bf for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2004 20:29:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ajq7q-0007j8-Ge for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2004 20:29:18 -0500 Original-Received: from [137.229.87.247] (helo=mail1.asf.alaska.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ajq7p-0007gC-Ny for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2004 20:28:45 -0500 Original-Received: from localhost (bkerin@localhost) by mail1.asf.alaska.edu (8.11.6/8.11.6) with ESMTP id i0N1SbC11020 for ; Thu, 22 Jan 2004 16:28:37 -0900 Original-To: bug-gnu-emacs@gnu.org Content-ID: X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6696 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6696 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---443943081-1818813180-1074808134=:2999 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: 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 ---443943081-1818813180-1074808134=:2999 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="test_source.c" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME="test_source.c" DQoNCmlmICggc29tZV9jb25kaXRpb24gKSB7DQogIGRvX3NvbWVfc3R1ZmYg KCk7DQp9IGVsc2Ugew0KICBkb19zb21lX290aGVyX3N0dWZmICgpOw0KfQ0K ---443943081-1818813180-1074808134=:2999 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs ---443943081-1818813180-1074808134=:2999--