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è

_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to