From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mickey Ferguson" Newsgroups: gmane.emacs.help Subject: multiple collapse sections of code? Date: Tue, 3 Oct 2006 10:04:57 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0659011067==" X-Trace: sea.gmane.org 1159895295 7491 80.91.229.2 (3 Oct 2006 17:08:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2006 17:08:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 03 19:08:13 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GUnhi-0003Fx-Ml for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Oct 2006 19:05:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GUnhi-0002TP-4J for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Oct 2006 13:05:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GUnhU-0002TK-Uc for help-gnu-emacs@gnu.org; Tue, 03 Oct 2006 13:05:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GUnhU-0002Sp-8r for help-gnu-emacs@gnu.org; Tue, 03 Oct 2006 13:05:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GUnhT-0002Sh-W0 for help-gnu-emacs@gnu.org; Tue, 03 Oct 2006 13:05:00 -0400 Original-Received: from [67.151.52.21] (helo=maui.peinet.peinc.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GUnni-00009n-U2 for help-gnu-emacs@gnu.org; Tue, 03 Oct 2006 13:11:27 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: multiple collapse sections of code? Thread-Index: AcbnDg7Vc2JlVbzAREenU6yO+L2gdA== Original-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37782 Archived-At: This is a multi-part message in MIME format. --===============0659011067== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6E70E.0DAC34CB" This is a multi-part message in MIME format. ------_=_NextPart_001_01C6E70E.0DAC34CB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Suppose I'm writing some C++ code that looks like the following: =20 if (MyFunc() !=3D NO_ERROR) { // now we start a big, complicated error handling routine CallFirstErrorHandlingRoutine(); CallSecondEHRoutine(); CallYetMore(); // there would be much more, but I've abbreviated for simplicity } =20 For simplification, I've made the function much smaller, and not used real function calls or anything. But as I'm viewing the code, suppose that right now I'm not interested in seeing the error handling code. Within Visual Studio you can click on a little minus sign that is to the left of the braces, and it will collapse and hide all of the code that is within the braces, replacing it with a plus sign. Clicking on that plus sign expands it so that the error handling code is visible again. You can have many parts collapsed at any given time. =20 The above code, collapsed, might look like: =20 if (MyFunc() !=3D NO_ERROR) + {} =20 =20 Is there any package for GNU Emacs (I'm currently on 21.3.1, though I could upgrade to the latest if necessary) that will provide this functionality? ------_=_NextPart_001_01C6E70E.0DAC34CB Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Suppose I'm writing some C++ code = that looks like the following:

 

  if (MyFunc() !=3D = NO_ERROR)

  {

    // now we start a big, complicated error handling routine

    = CallFirstErrorHandlingRoutine();

    = CallSecondEHRoutine();

    = CallYetMore();

    // there would be much = more, but I've abbreviated for simplicity

  }

 

For simplification, I've made the function much smaller, and not used real function calls or = anything.  But as I'm viewing the code, suppose that right now I'm not interested in = seeing the error handling code.  Within Visual Studio you can click on a = little minus sign that is to the left of the braces, and it will collapse and = hide all of the code that is within the braces, replacing it with a plus = sign.  Clicking on that plus sign expands it so that the error handling code is visible again.  You can have many parts collapsed at any given = time.

 

=

The above code, collapsed, might = look like:

 

  if (MyFunc() !=3D = NO_ERROR)

+ {}

 

 

Is there any package for GNU Emacs = (I'm currently on 21.3.1, though I could upgrade to the latest if necessary) = that will provide this functionality?

------_=_NextPart_001_01C6E70E.0DAC34CB-- --===============0659011067== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0659011067==--