emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex cad042f 31/48: Add note and test about the chang


From: Tassilo Horn
Subject: [elpa] externals/auctex cad042f 31/48: Add note and test about the change involving non-ascii file name
Date: Sun, 16 Sep 2018 01:47:25 -0400 (EDT)

branch: externals/auctex
commit cad042f02e3e919876b474572e6cb375ed551dcb
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>

    Add note and test about the change involving non-ascii file name
    
    * doc/changes.texi (News in 12.2): Add note that support for standard
    LaTeX without e-TeX extension is now very limited.
    * tests/tex/command-expansion.el (TeX-command-detokenize): New test to
    check whether \input and \detokenize are supplied when necessary.
---
 doc/changes.texi               | 19 +++++++++++++++----
 tests/tex/command-expansion.el | 13 +++++++++++++
 2 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/doc/changes.texi b/doc/changes.texi
index 3c85f58..3e3f417 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -25,10 +25,21 @@ was used in just the opposite way as the document says.  
Erase the
 customization if you have customized this option since it now acts in
 reverse to your expectation.
 
address@hidden A former customize option @code{japanese-TeX-command-list} is
-removed.  Use @code{japanese-TeX-engine-default}, or if it's really
-necessary, customize @code{TeX-command-list} directly if the task which
-the option used to carry is required.
address@hidden
+A former customize option @code{japanese-TeX-command-list} is removed.
+Use @code{japanese-TeX-engine-default}, or if it's really necessary,
+customize @code{TeX-command-list} directly if the task which the option
+used to carry is required.
+
address@hidden
+Support for standard @LaTeX{} without address@hidden extension is now very
+limited.  It doesn't work if raw @TeX{} code is put on the command line
+to invoke latex command.  It also fails for region compilation (@kbd{C-c
+C-r} and so on) with documents of non-ascii file name.  In addition, it
+no longer works with @previewlatex{}.  We consider this incompatibility
+is permissible because address@hidden extension is enabled for standard
address@hidden by default long ago.  @LaTeX{} variants such as address@hidden 
and
address@hidden are not affected.
 @end itemize
 
 @heading News in 12.1
diff --git a/tests/tex/command-expansion.el b/tests/tex/command-expansion.el
index b35b8f3..9215a32 100644
--- a/tests/tex/command-expansion.el
+++ b/tests/tex/command-expansion.el
@@ -84,4 +84,17 @@
        (TeX-view-command-raw)))
    :type 'error))
 
+(ert-deftest TeX-command-detokenize ()
+  "Check whether \"\\input\" and \"\\detokenize\" are supplied when necessary."
+  ;; Skip on w32 because the quoting style of `shell-quote-argument'
+  ;; is different.
+  (skip-unless (not (eq system-type 'w32)))
+  (should (string=
+           (let ((major-mode 'latex-mode)
+                (TeX-engine 'default)
+                (TeX-master "/tmp/abc")
+                (TeX-command-extra-options " \"\\foo\""))
+            (TeX-command-expand "%`%(extraopts)%' %T" #'TeX-master-file))
+          " \"\\foo\" \"\\input\" \\\\detokenize\\{\\ abc.tex\\ \\}")))
+
 ;;; command-expansion.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]