auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Cite keys starting with a digit and BibTeX-auto-regexp-li


From: Mosè Giordano
Subject: [AUCTeX-devel] Cite keys starting with a digit and BibTeX-auto-regexp-list
Date: Tue, 23 Jul 2013 19:19:21 +0200

Hi all,

does someone know why there is `TeX-token-char' in
`BibTeX-auto-regexp-list' (line 1544 of latex.el)?  Cite keys aren't
TeX macros and can start with a digit.  For example, NASA ADS usually
creates BibTeX entries whose keys start with the year of publication
of the paper, but that `BibTeX-auto-regexp-list' doesn't match such
keys.

If there isn't a good reason for keeping `TeX-token-char', I'd apply
the following change:
--8<---------------cut here---------------start------------->8---
--- a/latex.el
+++ b/latex.el
@@ -1541,8 +1541,7 @@ It will setup BibTeX to store keys in an auto file."

 (defvar BibTeX-auto-regexp-list
   `(("@[Ss][Tt][Rr][Ii][Nn][Gg]" 1 ignore)
-    (,(concat "@[a-zA-Z]+[{(][ \t]*\\(" TeX-token-char "[^,
\n\r\t%\"#'()={}]*\\)")
-     1 LaTeX-auto-bibitem))
+    ("@[a-zA-Z]+[{(][ \t]*\\([^, \n\r\t%\"#'()={}]*\\)" 1 LaTeX-auto-bibitem))
   "List of regexp-list expressions matching BibTeX items.")

 ;;; Macro Argument Hooks
--8<---------------cut here---------------end--------------->8---
or something like this.

Bye,
Mosè



reply via email to

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