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

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

Re: BibTeX-mode: bibtex-user-optional-fields: INIT without {}


From: Glenn Morris
Subject: Re: BibTeX-mode: bibtex-user-optional-fields: INIT without {}
Date: Sat, 14 Apr 2007 20:53:27 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

"Roland Winkler" wrote:

> The following patch appears much clearer to me.
[...]
> Should I check it in?

Entirely up to you. I installed mine, but feel free to revert it.

> +      (unless (string-match "\\`\\({.*}\\|\".*\"\\)\\'" init)
> +        (setq init (concat (bibtex-field-left-delimiter) init
> +                           (bibtex-field-right-delimiter)))))

What about the (unlikely?) cases like:

author = {Smith}, J. and Jones, {P.}

It matches the above regexp, but still needs enclosing.





reply via email to

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