all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Tury <tury.peter@gmail.com>
Subject: Re: identifiing strings and comments in program source files (to skip them over)
Date: Wed, 26 Apr 2006 19:05:30 GMT	[thread overview]
Message-ID: <ge5sd33gl7ld.fgu9jxb1adz0.dlg@40tude.net> (raw)
In-Reply-To: mailman.964.1146057880.9609.help-gnu-emacs@gnu.org

On Wed, 26 Apr 2006 08:38:52 +0200, martin rudalics wrote:

> To check whether searching stopped in a
> comment or string you could parse from `beginning-of-defun' or something
> similar instead - `syntax-ppss' does that.

Thanks for this detailed explanation also! My problem is that I have legacy
code (with ~1 MB source files sometimes) and I can't really imagine
anything for beginning-of-defun. E.g. C-like /*...*/ works for commenting
and whole subprograms can be commented out... In other words: I think I
should have to start parsing everytime from the beginning of the buffer...

Any idea? Or 1MB source files are not too big for this on today's PCs?

Br,
P

       reply	other threads:[~2006-04-26 19:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.964.1146057880.9609.help-gnu-emacs@gnu.org>
2006-04-26 19:05 ` Peter Tury [this message]
2006-04-26  6:38 identifiing strings and comments in program source files (to skip them over) martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2006-04-25 21:14 Peter Tury
2006-04-26  3:53 ` Thien-Thi Nguyen
2006-04-26  8:04   ` Peter Tury
2006-04-26  6:01 ` Stefan Monnier
2006-04-26  8:06   ` Peter Tury

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=ge5sd33gl7ld.fgu9jxb1adz0.dlg@40tude.net \
    --to=tury.peter@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.