emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parse-partial-sexp parses only Lisp?


From: martin rudalics
Subject: Re: parse-partial-sexp parses only Lisp?
Date: Wed, 02 Apr 2008 18:59:40 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> - What variables are used when searching for comments?

I don't understand: `parse-partial-sexp' uses the syntax-table to
identify start and end sequences of comments and strings.  Sometimes
syntax-table text-properties are used.  What kind of "variables" do you
have in mind?

> - What do I have to put in OLDSTATE to make it parse comments and
> strings correctly? - assuming that I know about previous comments and
> strings and if FROM is inside a comment or string.

You know about previous comments and strings iff you are neither in a
comment nor in a string.  Strings and comments can be nested in so many
forms that it's strongly encouraged to either use the state returned by
a previous call of `parse-partial-sexp' or assure that you start outside
of any comments or strings.  `syntax-begin-function' if provided is a
good choice here.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]