unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Mickey Ferguson" <MFerguson@plantcml.com>
Subject: multiple collapse sections of code?
Date: Tue, 3 Oct 2006 10:04:57 -0700	[thread overview]
Message-ID: <C835362391A2CF4F84E985842A07518705D239CC@maui.peinet.peinc.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1172 bytes --]

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

 

  if (MyFunc() != 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() != 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?


[-- Attachment #1.2: Type: text/html, Size: 5152 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

             reply	other threads:[~2006-10-03 17:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-03 17:04 Mickey Ferguson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-04 17:05 multiple collapse sections of code? Mickey Ferguson
     [not found] <mailman.7729.1159981526.9609.help-gnu-emacs@gnu.org>
2006-10-04 17:15 ` Charles philip Chan
2006-10-05  7:17 ` Mathias Dahl
     [not found] <mailman.7708.1159895103.9609.help-gnu-emacs@gnu.org>
2006-10-04  7:37 ` Mathias Dahl
2006-10-04 17:18 ` Colin S. Miller
2006-10-05 16:06 Mickey Ferguson
     [not found] <mailman.7769.1160064366.9609.help-gnu-emacs@gnu.org>
2006-10-08 13:36 ` Mathias Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C835362391A2CF4F84E985842A07518705D239CC@maui.peinet.peinc.com \
    --to=mferguson@plantcml.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).