[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 3ca0106 08/95: Guard setcar with appropriate tes
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 3ca0106 08/95: Guard setcar with appropriate test |
Date: |
Sun, 16 Apr 2017 01:26:45 -0400 (EDT) |
branch: externals/auctex
commit 3ca01062a578e1dd1c641ca34001b5e07a72936a
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Guard setcar with appropriate test
* tex-jp.el (assoc): Replace second element of "BibTeX" and "Index" entries
of
`TeX-command-list' only if they are already there. This variable is
customizable and users may have removed them. Reported by jfbu.
---
tex-jp.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tex-jp.el b/tex-jp.el
index cfc37bf..e08d702 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -124,8 +124,11 @@ For detail, see `TeX-command-list', to which this list is
appended."
TeX-command-list))
;; $B;CDj=hCV!#(Btex.el $B$K<h$j9~$s$G$b$i$($k$H$h$$!#(B
-(setcar (cdr (assoc "BibTeX" TeX-command-list)) "%(bibtex) %s")
-(setcar (cdr (assoc "Index" TeX-command-list)) "%(makeindex) %s")
+;; Replace the entries only if they're already there.
+(when (assoc "BibTeX" TeX-command-list)
+ (setcar (cdr (assoc "BibTeX" TeX-command-list)) "%(bibtex) %s"))
+(when (assoc "Index" TeX-command-list)
+ (setcar (cdr (assoc "Index" TeX-command-list)) "%(makeindex) %s"))
;; $B;CDj=hCV!#(Btex.el $B$K<h$j9~$s$G$b$i$($k$H$h$$!#(B
(setq TeX-expand-list
- [elpa] externals/auctex updated (f0cb472 -> 334da3d), Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 46059c3 02/95: Remove file from distributed tar ball, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 3ca0106 08/95: Guard setcar with appropriate test,
Tassilo Horn <=
- [elpa] externals/auctex a159114 01/95: Add AUCTeX Logo, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 183959a 04/95: Fix ConTeXt-outline-regexp, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 474981f 05/95: Show summary of tests at the end of make check, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 15960e4 06/95: Add makeglossaries to the list of commands, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex b714739 09/95: Add \citetitle to `reftex-cite-format' in style/biblatex, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex ccd67c2 17/95: ; * style/breqn.el ("breqn"): Add missing starred version of array., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c886a1b 10/95: Check if label is defined before adding it to known labels, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 74766b4 03/95: Remove also a gitignore, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7230fec 07/95: * latex.el (LaTeX-newline): Make interactive. See bug#24412., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a77e75a 15/95: ; * doc/changes.texi: Improve wording., Tassilo Horn, 2017/04/16