* parse-partial-sexp, what does it use?
@ 2008-04-24 0:15 Lennart Borgman (gmail)
2008-04-24 2:13 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-04-24 0:15 UTC (permalink / raw)
To: Emacs Devel
I am getting different results from parse-partial-sexp in two similar
cases where I have tried to setup everything so that it should give the
same result.
In both cases I believe I have the same arguments to parse-partial-sexp
and this is t:
(and (equal (syntax-table) html-mode-syntax-table)
(equal (nth 1 font-lock-syntactic-keywords)
sgml-font-lock-syntactic-keywords))
and
multibyte-syntax-as-symbol=nil
parse-sexp-ignore-comments=nil
parse-sexp-lookup-properties=t
I guess I am missing something, but what?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: parse-partial-sexp, what does it use?
2008-04-24 0:15 parse-partial-sexp, what does it use? Lennart Borgman (gmail)
@ 2008-04-24 2:13 ` Stefan Monnier
2008-04-24 21:54 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2008-04-24 2:13 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
> I am getting different results from parse-partial-sexp in two similar cases
> where I have tried to setup everything so that it should give the
> same result.
> In both cases I believe I have the same arguments to parse-partial-sexp and
> this is t:
> (and (equal (syntax-table) html-mode-syntax-table)
> (equal (nth 1 font-lock-syntactic-keywords)
> sgml-font-lock-syntactic-keywords))
> and
> multibyte-syntax-as-symbol=nil
> parse-sexp-ignore-comments=nil
> parse-sexp-lookup-properties=t
> I guess I am missing something, but what?
`syntax-table' text properties in the buffer, set by
font-lock-syntactic-keywords?
I expect the problem is with the use of `syntax-ppss' in
html-font-lock-syntactic-keywords.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: parse-partial-sexp, what does it use?
2008-04-24 2:13 ` Stefan Monnier
@ 2008-04-24 21:54 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-04-24 21:54 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Emacs Devel
Stefan Monnier wrote:
>> I am getting different results from parse-partial-sexp in two similar cases
>> where I have tried to setup everything so that it should give the
>> same result.
>
>> In both cases I believe I have the same arguments to parse-partial-sexp and
>> this is t:
>
>> (and (equal (syntax-table) html-mode-syntax-table)
>> (equal (nth 1 font-lock-syntactic-keywords)
>> sgml-font-lock-syntactic-keywords))
>
>> and
>
>> multibyte-syntax-as-symbol=nil
>> parse-sexp-ignore-comments=nil
>> parse-sexp-lookup-properties=t
>
>> I guess I am missing something, but what?
>
> `syntax-table' text properties in the buffer, set by
> font-lock-syntactic-keywords?
> I expect the problem is with the use of `syntax-ppss' in
> html-font-lock-syntactic-keywords.
Thanks, it helped to clear things out. (I had made a too ambitous
redefinition of the syntax-begin-function.)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-24 21:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24 0:15 parse-partial-sexp, what does it use? Lennart Borgman (gmail)
2008-04-24 2:13 ` Stefan Monnier
2008-04-24 21:54 ` Lennart Borgman (gmail)
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.