[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BibTeX-mode: bibtex-user-optional-fields: INIT without {}
From: |
Roland Winkler |
Subject: |
Re: BibTeX-mode: bibtex-user-optional-fields: INIT without {} |
Date: |
Sun, 15 Apr 2007 18:09:49 +0200 |
On Sat Apr 14 2007 Glenn Morris wrote:
> > + (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.
It is an unlikely case. But you are right, the code should allow
this possibility. In your new version, I only replaced fboundp by
functionp and added a test that INIT is indeed a string.
Roland