[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex b2f69e1 84/95: Fix detection of bibliography fil
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex b2f69e1 84/95: Fix detection of bibliography files with dots in path |
Date: |
Sun, 16 Apr 2017 01:27:02 -0400 (EDT) |
branch: externals/auctex
commit b2f69e18ba103bf4ca42cd9bd9f6a4536688d242
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Fix detection of bibliography files with dots in path
* latex.el (LaTeX-auto-regexp-list): Remove dot from the list of excluded
characters in addbibresource's regexp.
* tests/latex/latex-test.el (LaTeX-addbibresource): New test for
addbibresource.
---
latex.el | 2 +-
tests/latex/latex-test.el | 17 ++++++++++++++++-
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/latex.el b/latex.el
index 5a699f8..a82a136 100644
--- a/latex.el
+++ b/latex.el
@@ -1607,7 +1607,7 @@ This is necessary since index entries may contain
commands and stuff.")
(, (concat "\\\\bibitem\\[[^][\n\r]+\\]{\\(" token "[^,
\n\r\t%\"#'()={}]*\\)}")
1 LaTeX-auto-bibitem)
("\\\\bibliography{\\([^#}\\\\\n\r]+\\)}" 1 LaTeX-auto-bibliography)
- ("\\\\addbibresource\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\\\n\r\.]+\\)\\..+}"
+ ("\\\\addbibresource\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\\\n\r]+\\)\\..+}"
1 LaTeX-auto-bibliography)
("\\\\add\\(?:global\\|section\\)bib\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\\\n\r\.]+\\)\\(?:\\..+\\)?}"
1 LaTeX-auto-bibliography)
("\\\\newrefsection\\[\\([^]]+\\)\\]" 1 LaTeX-split-bibs)
diff --git a/tests/latex/latex-test.el b/tests/latex/latex-test.el
index 69939cf..02b1894 100644
--- a/tests/latex/latex-test.el
+++ b/tests/latex/latex-test.el
@@ -1,6 +1,6 @@
;;; latex-test.el --- tests for LaTeX mode
-;; Copyright (C) 2014--2016 Free Software Foundation, Inc.
+;; Copyright (C) 2014--2017 Free Software Foundation, Inc.
;; This file is part of AUCTeX.
@@ -141,4 +141,19 @@ line and from another directory."
(LaTeX-mode)
(buffer-string)))))
+(ert-deftest LaTeX-addbibresource ()
+ "Check parsing of bibliography files added with addbibresource.
+
+In particular, make sure dots are treated correctly and only the
+last extension is stripped."
+ (should
+ (equal
+ (with-temp-buffer
+ (insert "\\addbibresource{../foo-1.bar_2.qux3.ext}")
+ (LaTeX-mode)
+ (let ((TeX-parse-self t))
+ (TeX-update-style t))
+ (LaTeX-bibliography-list))
+ '(("../foo-1.bar_2.qux3")))))
+
;;; latex-test.el ends here
- [elpa] externals/auctex a8dba19 60/95: Fix addition of key=val's, (continued)
- [elpa] externals/auctex a8dba19 60/95: Fix addition of key=val's, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4688310 65/95: Add new compat function `TeX-replace-regexp-in-string', Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 6b5a7e0 56/95: Improve fallback for indentation when & is omitted, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 592297d 64/95: Avoid altering user option as much as possible, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7a382d2 72/95: * texmathp.el (texmathp-tex-commands-default): Add entries for empheq.sty., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 2fef12e 80/95: ; Clear out byte compile warning, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 51d8d3d 75/95: Recognize optional argument in verb macros with delimiters/braces, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex d5951e6 79/95: Improve skipping of inline verbatim macros, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a45821b 92/95: ; * latex.el (LaTeX-section-list-add-locally): Fix doc string., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex d82f66c 91/95: ; * style/paracol.el (TeX-arg-paracol-switchcolumn*): Guard point movement., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex b2f69e1 84/95: Fix detection of bibliography files with dots in path,
Tassilo Horn <=
- [elpa] externals/auctex ee42d37 73/95: Enhance Japanese class files support, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 334da3d 95/95: Merge branch 'master' into externals/auctex, Tassilo Horn, 2017/04/16