all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Seung H. Choi" <schoi21c@gmail.com>
Subject: Re: Searching the uncommented text
Date: Mon, 19 Dec 2005 15:04:33 -0500	[thread overview]
Message-ID: <18d610430512191204s3ddfdf3bi363bc99d5e7ad9f3@mail.gmail.com> (raw)
In-Reply-To: <877ja22jwq.fsf@thalassa.informatimago.com>

Thanks, but is there a way to set a hot-key for this functionality?
For general search, ctrl+S will move the cursor to the next matching text.
If I can set up a hot key, then I would be able to search through the
code that are not comments.

-Seung

On 12/18/05, Pascal Bourguignon <spam@mouse-potato.com> wrote:
> "Seung H. Choi" <schoi21c+help-gnu-emacs@gmail.com> writes:
> > How do I search the text that are not commented? If there is such a
> > feature, it would really help in lots of cases.
>
> M-x isearch-forward-regexp RET ^[^;]*text.* RET
>
> That is, in lisp sources where the comments start with ';'.
>
>
> For C++, you could do:
>
> M-x isearch-forward-regexp RET ^\(/[^/]\|[^/]\)*text.* RET
>
>
>
> --
> __Pascal Bourguignon__                     http://www.informatimago.com/
> Our enemies are innovative and resourceful, and so are we. They never
> stop thinking about new ways to harm our country and our people, and
> neither do we. -- Georges W. Bush
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>

  reply	other threads:[~2005-12-19 20:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.19767.1134928636.20277.help-gnu-emacs@gnu.org>
2005-12-18 21:08 ` Searching the uncommented text Pascal Bourguignon
2005-12-19 20:04   ` Seung H. Choi [this message]
2005-12-18 17:56 Seung H. Choi

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=18d610430512191204s3ddfdf3bi363bc99d5e7ad9f3@mail.gmail.com \
    --to=schoi21c@gmail.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.
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.