[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 1d7c229 38/95: Make papersize predicate in tex-j
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 1d7c229 38/95: Make papersize predicate in tex-jp.el to work again. |
Date: |
Sun, 16 Apr 2017 01:26:51 -0400 (EDT) |
branch: externals/auctex
commit 1d7c2293c88028bdfbafde932f421522a65f2f6a
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Make papersize predicate in tex-jp.el to work again.
Problem parallel to bug#25563.
* tex-jp.el (): Use `LaTeX-match-class-option' to examine paper size
option of document class.
---
tex-jp.el | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/tex-jp.el b/tex-jp.el
index 0a51126..36acf27 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -183,24 +183,31 @@ For detail, see `TeX-command-list', to which this list is
appended."
(unless (get 'TeX-view-predicate-list 'saved-value)
(setq TeX-view-predicate-list
'((paper-a4
- (TeX-match-style
- "\\`\\(a4j\\|a4paper\\|a4dutch\\|a4wide\\|sem-a4\\)\\'"))
+ (let ((regex
"\\`\\(?:a4j\\|a4paper\\|a4dutch\\|a4wide\\|sem-a4\\)\\'"))
+ (or (TeX-match-style regex)
+ (and (fboundp 'LaTeX-match-class-option)
+ (LaTeX-match-class-option regex)))))
(paper-a5
- (TeX-match-style
- "\\`\\(a5j\\|a5paper\\|a5comb\\)\\'"))
+ (let ((regex "\\`\\(?:a5j\\|a5paper\\|a5comb\\)\\'"))
+ (or (TeX-match-style regex)
+ (and (fboundp 'LaTeX-match-class-option)
+ (LaTeX-match-class-option regex)))))
;; jarticle address@hidden(B b4paper, b5paper $B$O(B JIS B
$B7ONs!#(B
;; j-article $B$J$I$NJ}$K$O(B a4j, b5j
$B$H$$$C$?%*%W%7%g%s$O$J$$!#(B
(paper-b5 ; ISO B5
- (and (TeX-match-style "\\`b5paper\\'")
- (not (memq TeX-engine '(ptex uptex)))))
+ (and (fboundp 'LaTeX-match-class-option)
+ (LaTeX-match-class-option "\\`b5paper\\'")
+ (not (TeX-match-style
"\\`u?[jt]s?\\(?:article\\|report\\|book\\)\\'"))))
(paper-b5jis ; JIS B5
- (or (TeX-match-style "\\`b5j\\'")
- (and (TeX-match-style "\\`b5paper\\'")
- (memq TeX-engine '(ptex uptex)))))
+ (and (fboundp 'LaTeX-match-class-option)
+ (or (LaTeX-match-class-option "\\`b5j\\'")
+ (and (LaTeX-match-class-option "\\`b5paper\\'")
+ (TeX-match-style
"\\`u?[jt]s?\\(?:article\\|report\\|book\\)\\'")))))
;; article $B$J$I$K$O(B b4paper $B$H$$$&%*%W%7%g%s$O$J$$!#(B
;; b4paper $B$H$$$&%*%W%7%g%s$,$"$C$?$i(B JIS B4 $B$H8+$J$9!#(B
(paper-b4jis
- (TeX-match-style "\\`\\(b4j\\|b4paper\\)\\'")))))
+ (and (fboundp 'LaTeX-match-class-option)
+ (LaTeX-match-class-option "\\`\\(?:b4j\\|b4paper\\)\\'"))))))
;; jsarticle address@hidden>$K$b$b$C$HH=7?$N%*%W%7%g%s$,$"$k$,!"(B
;; $BA4ItLLE]8+$F$k$H%-%j$,$J$$$N$G!"$3$l$/address@hidden&!#(B
;; jsarticle.el $B$d(B jsbook.el
$B$GDI2CJ,$N=hM}$r;E9~$a$P$$$$$N$+$bCN$l$J$$!#(B
- [elpa] externals/auctex c0f3659 21/95: Fix TeX-view-predicate-list-builtin predicates wrt class opts, (continued)
- [elpa] externals/auctex c0f3659 21/95: Fix TeX-view-predicate-list-builtin predicates wrt class opts, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 6c91dba 20/95: Fix number of arguments of local-variable-p in XEmacs, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex e18e46e 32/95: * latex.el (LaTeX-label): Eliminate premature returning of label., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex f12dbb2 27/95: Improve parsing process in style/xcolor.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 85c4656 12/95: Add function to put labels in opt. argument of environments, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c112a9e 34/95: ; * style/empheq.el (LaTeX-empheq-item-equation): Delete unnecessary *., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex f708e1b 29/95: Add new style/preview.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a1091b8 35/95: Improve determination of master file with subfiles class, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4321dcc 41/95: Tweak locale treatment on xemacs., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex b0bf9ea 43/95: Partially revert previous commit, will look better later, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 1d7c229 38/95: Make papersize predicate in tex-jp.el to work again.,
Tassilo Horn <=
- [elpa] externals/auctex a49aaa4 44/95: Fix font-latex-make-match-defun to generate intended code., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 664186d 52/95: ; Add fix related with coding system missing in my commit on Feb 14., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7c48c19 49/95: * tex-ispell.el (TeX-ispell-skip-cmds-list): Add hyperref macros., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4054384 25/95: Fix parsing bug in style/xcolor.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex b4f304b 36/95: Improve regexp for looking for documentclass macro, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 9876030 23/95: Fix minor problems, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 586cbd8 28/95: * .gitignore: Ignore only preview.el in top directory., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex cf43d7d 53/95: ; Add some full stops at the end of sentences of the manual, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex de5e40b 37/95: Fix setting of coding system for Japanese TeX, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7e7e55e 40/95: Add new style/sourcecodepro.el, Tassilo Horn, 2017/04/16