emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Reftex syntax table entry for "-"


From: Ralf Angeli
Subject: Re: Reftex syntax table entry for "-"
Date: Wed, 07 Feb 2007 21:20:45 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

* Kevin Rodgers (2007-02-07) writes:

> Lawrence Mitchell wrote:
>> 
>> reftex-parse-bibtex-entry uses a syntax table in which "-" is not a
>> word constituent.  This has the consequence that if a bibtex field
>> name contains a hyphen, the entry will be incorrectly parsed.  For
>> example, consider the following entry:
>
> Is "-" a symbol constituent in that syntax table?

Yes.  From a debugging session:
e (char-syntax ?-)
95 (#o137, #x5f, ?_)

> Can other symbol
> constituent characters besides hyphen occur in bibtex field names?

I'm not sure and I couldn't find anything explicitely mentioned in
btxdoc or btxhak.

> If so, perhaps it'd be better to use "\\s_" instead of "-" below.

That would be the progressive approach.  Personally I'd prefer adding
"-" as a more conservative way for fixing the bug.

-- 
Ralf





reply via email to

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