all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
Subject: Re: code folding
Date: Sun, 29 Jan 2006 21:10:58 +0000	[thread overview]
Message-ID: <43dd2f10$0$15788$14726298@news.sunsite.dk> (raw)
In-Reply-To: <87hd7mq17n.fsf@ellen.trollope.org>

Michael Powe wrote:

> It does hide the functions but not the C-style comments.  The language
> is Javascript.  When the point is inside a comment block, nothing
> happens when 'hide block' is invoked.  I didn't try it on C++ style
> comments, which I only ever use for 1 or 2 line comments, anyway.
> 
> You could be right, though, and maybe it is just set up for that style
> of comment.
> 
> Thanks.
> 
> mp
> 
Micheal,

I did a quick test, and it worked for me.
However, the cursor must be inside the comment, or hs-hide-block will fold
the code level containing the comment.

hs-hide-level folds control blocks, but not comments within the current indent level.

However, this might be an XEmacs/GNU Emacs difference. I'll try it on GNU Emacs
when I get access to a machine with it installed.

Code used was

/*
  * test
  */

// 1
// 2


foo(i)
{
     var i;
     var k;

     if (1)
     {

         /*
            Test

         */
     }

     /*
       test
     */

}

HTH,
Colin S. Miller

-- 
Replace the obvious in my email address with the first three letters of the hostname to reply.

  reply	other threads:[~2006-01-29 21:10 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-29 12:18 code folding Michael Powe
2006-01-29 13:06 ` Colin S. Miller
2006-01-29 19:32   ` Michael Powe
2006-01-29 21:10     ` Colin S. Miller [this message]
2006-01-30  0:16       ` Thien-Thi Nguyen
2006-01-29 14:04 ` Jose E. Marchesi
2006-01-29 14:56 ` Robert Marshall
2006-01-29 19:38   ` Michael Powe
     [not found] ` <mailman.137.1138549468.3044.help-gnu-emacs@gnu.org>
2006-01-29 19:29   ` Michael Powe
2006-01-30  7:33 ` Tim X
  -- strict thread matches above, loose matches on Subject: below --
2011-08-01 20:09 Jai Dayal
2011-08-01 21:52 ` Jambunathan K
2011-08-02  5:40   ` Andreas Röhler
2011-08-02  8:08   ` Le Wang
2011-08-02  8:19   ` Teemu Likonen
2011-08-12  7:34   ` Bastien
2011-08-13 19:38     ` Le Wang
2011-08-13 20:12       ` Jambunathan K
2011-08-16 10:39         ` Le Wang
2011-08-16 11:39           ` Jambunathan K
2011-08-17  9:08           ` Bastien
2011-08-15 13:01     ` Bastien
     [not found] <mailman.6772.1053945790.21513.help-gnu-emacs@gnu.org>
2003-05-26 11:12 ` Code Folding Tuukka Toivonen
2003-05-26 13:49 ` Kai Großjohann
2003-05-26 15:11 ` Stefan Monnier
2003-05-26 10:33 Adam H

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

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

  git send-email \
    --in-reply-to='43dd2f10$0$15788$14726298@news.sunsite.dk' \
    --to=no-spam-thank-you@csmiller.demon.co.uk \
    /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.
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.