[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex cdb98c6 34/80: Fix last commit
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex cdb98c6 34/80: Fix last commit |
Date: |
Wed, 16 Oct 2019 11:07:12 -0400 (EDT) |
branch: externals/auctex
commit cdb98c69f2ac5787b00cdd6647b4bf54f63da2b4
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Fix last commit
* tex-buf.el (TeX-command-expand): Redefine the value of `file' just
once per call of `TeX-command-expand'. Previous code could give
spurious quote when the given command string contains more than one
"%" expanders tied with the symbol `file'.
---
tex-buf.el | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index 0849198..8b87c4c 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -554,6 +554,17 @@ without further expansion."
"%"))
(or list (TeX-expand-list)))
pat (regexp-opt (mapcar #'car list)))
+ ;; `TeX-command-expand' is called with `file' argument being one
+ ;; of `TeX-master-file', `TeX-region-file' and
+ ;; `TeX-active-master'. The return value of these functions
+ ;; sometimes needs suitable "decorations" for an argument for
+ ;; underlying shell or latex executable, or both, when the
+ ;; relavant file name involves some special characters such as
+ ;; space and multibyte characters. Hence embed that function in a
+ ;; template prepared for that purpose.
+ (setq file (apply-partially
+ #'TeX--master-or-region-file-with-extra-quotes
+ file))
(while (setq pos (string-match pat command pos))
(setq string (match-string 0 command)
entry (assoc string list)
@@ -570,24 +581,6 @@ without further expansion."
(functionp expansion))
(apply expansion arguments))
((boundp expansion)
- (if (eq expansion 'file)
- ;; `TeX-command-expand' is called with
- ;; `file' argument being one of
- ;; `TeX-master-file',
- ;; `TeX-region-file' and
- ;; `TeX-active-master'. The return
- ;; value of these functions sometimes
- ;; needs suitable "decorations" for an
- ;; argument for underlying shell or
- ;; latex executable, or both, when the
- ;; relavant file name involves some
- ;; special characters such as space
- ;; and multibyte characters. Hence
- ;; embed that function in a template
- ;; prepared for that purpose.
- (setq file (apply-partially
-
#'TeX--master-or-region-file-with-extra-quotes
- file)))
(setq expansion-res
(apply (symbol-value expansion) arguments))
(when (eq expansion 'file)
- [elpa] externals/auctex ccfd3d9 57/80: Restore syntax fontify in Texinfo mode, (continued)
- [elpa] externals/auctex ccfd3d9 57/80: Restore syntax fontify in Texinfo mode, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex f127145 60/80: * context.el (ConTeXt-environment): Fix docstring., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex d56a596 58/80: ; * tests/tex/path-expansion.el (): Fix typo., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 8610189 52/80: Update style/paracol.el to package version 1.35, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c64d8c1 61/80: * doc/changes.texi: Mention fontification improvement for biblatex., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 2c23247 62/80: Support explicitly numbered group contructs, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex dac5503 64/80: Add new style/ltugboat.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 52e0dac 68/80: Improve detecting of rejected optional arguments, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 9127647 69/80: Update style/varioref.el to package version 1.6b, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex eafb114 75/80: Fix preview-latex for TeXLive 2019 update, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex cdb98c6 34/80: Fix last commit,
Tassilo Horn <=
- [elpa] externals/auctex 0fd9848 35/80: Improve style/mflogo.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 1b88eda 38/80: Fix autoload generation code (bug#35758), Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 90fcbd4 41/80: Make navigation function robust, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c07e4bf 49/80: Update style/AnonymousPro.el to package version 2.2, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a9b5eb1 67/80: ; * style/changelog.el (font-latex-add-keywords): Silence the compiler., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex dc5e90e 66/80: Add new style/multitoc.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c5e47f8 80/80: ; Recompile using GNUMakefile after merge from origin/master, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex ff688b9 33/80: Stop depreciated usage of undeclared dynamic variable, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 3e179f8 53/80: Update style/fvextra.el to package version 1.4, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 3542a23 70/80: Update style/subcaption.el to package version 1.3, Tassilo Horn, 2019/10/16