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

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

bibtex-empty-field-re matches nonempty fields.


From: Lute Kamstra
Subject: bibtex-empty-field-re matches nonempty fields.
Date: Tue, 25 Jan 2005 12:05:07 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Currently, `bibtex-empty-field-re' in lisp/textmodes/bibtex.el is
"\"\"\\|{}" which matches nonempty field strings like "{Wac\\l{}aw
Sierpi\\'nski}".  The patch below fixes this.  Shall I commit it?

  Lute.


*** lisp/textmodes/bibtex.el    5 Dec 2004 16:06:39 -0000       1.90
--- lisp/textmodes/bibtex.el    25 Jan 2005 10:20:53 -0000
***************
*** 1115,1122 ****
                        t))
    "Regexp matching the name of any valid BibTeX entry (including string).")
  
! 
! (defconst bibtex-empty-field-re "\"\"\\|{}"
    "Regexp matching an empty field.")
  
  (defconst bibtex-font-lock-syntactic-keywords
--- 1115,1121 ----
                        t))
    "Regexp matching the name of any valid BibTeX entry (including string).")
  
! (defconst bibtex-empty-field-re "\\`\\(\"\"\\|{}\\)\\'"
    "Regexp matching an empty field.")
  
  (defconst bibtex-font-lock-syntactic-keywords




reply via email to

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