branch: externals/auctex
commit cad042f02e3e919876b474572e6cb375ed551dcb
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
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.
-@item 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.
+@item
+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.
+
+@item
+Support for standard @LaTeX{} without e-@TeX{} 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 e-@TeX{} extension is enabled for standard
+@LaTeX{} by default long ago. @LaTeX{} variants such as Xe@LaTeX{} and
+Lua@LaTeX{} 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