[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 9656d30 21/62: Fix insertion of unnecessary back
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 9656d30 21/62: Fix insertion of unnecessary backslash |
Date: |
Sun, 20 Dec 2020 10:39:55 -0500 (EST) |
branch: externals/auctex
commit 9656d30f93fa4cfb2a9e4740d31f611f2b0f167c
Author: Arash Esbati <arash@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
Fix insertion of unnecessary backslash
* style/amsthm.el (LaTeX-arg-amsthm-fontdecl):
* style/ntheorem.el (LaTeX-arg-ntheorem-fontdecl): Don't insert a
backslash if the query for font declaration is left empty.
---
style/amsthm.el | 8 ++++----
style/ntheorem.el | 15 ++++++++-------
2 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/style/amsthm.el b/style/amsthm.el
index 569cef9..f7cc6bb 100644
--- a/style/amsthm.el
+++ b/style/amsthm.el
@@ -58,15 +58,16 @@
"Prompt for font declaration commands in \"\\newtheoremstyle\".
If OPTIONAL is non-nil, insert the resulting value as an optional
argument. Use PROMPT as the prompt string."
- ;; `INITIAL-INPUT' (5th argument to `TeX-completing-read-multiple')
- ;; is hard-coded to `TeX-esc'.
(let* ((crm-separator (regexp-quote TeX-esc))
(fontdecl (mapconcat #'identity
(TeX-completing-read-multiple
(TeX-argument-prompt optional prompt "Font: \\"
t)
LaTeX-amsthm-fontdecl)
TeX-esc)))
- (TeX-argument-insert fontdecl optional)))
+ (TeX-argument-insert fontdecl
+ optional
+ (when (and fontdecl (not (string= fontdecl "")))
+ TeX-esc))))
(defun LaTeX-amsthm-env-label (environment)
"Insert ENVIRONMENT, query for an optional argument and prompt
@@ -161,7 +162,6 @@ make them available as new environments."
'("theoremstyle"
(TeX-arg-eval completing-read
(TeX-argument-prompt nil nil "Style")
- ;; LaTeX-amsthm-theoremstyle-list
(LaTeX-amsthm-newtheoremstyle-list)))
"qedhere"
"swapnumbers"
diff --git a/style/ntheorem.el b/style/ntheorem.el
index 03bdf4f..4886442 100644
--- a/style/ntheorem.el
+++ b/style/ntheorem.el
@@ -77,18 +77,19 @@ defined with \"\\newtheoremlisttype\".")
"List of font declaration commands for \"\\newtheoremstyle\".")
(defun LaTeX-arg-ntheorem-fontdecl (optional &optional prompt)
- "Prompt for font declaration commands in \"\\theorem(body\|header)font\".
+ "Prompt for font declaration commands in \"\\theorem(body|header)font\".
If OPTIONAL is non-nil, insert the resulting value as an optional
argument. Use PROMPT as the prompt string."
- ;; `INITIAL-INPUT' (5th argument to `TeX-completing-read-multiple')
- ;; is hard-coded to `TeX-esc'.
(let* ((crm-separator (regexp-quote TeX-esc))
- (fontdecl (mapconcat 'identity
+ (fontdecl (mapconcat #'identity
(TeX-completing-read-multiple
- (TeX-argument-prompt optional prompt "Font
declaration")
- LaTeX-ntheorem-fontdecl nil nil TeX-esc)
+ (TeX-argument-prompt optional prompt "Font
declaration: \\" t)
+ LaTeX-ntheorem-fontdecl)
TeX-esc)))
- (TeX-argument-insert fontdecl optional)))
+ (TeX-argument-insert fontdecl
+ optional
+ (when (and fontdecl (not (string= fontdecl "")))
+ TeX-esc))))
(defun LaTeX-ntheorem-env-label (environment)
"Insert ENVIRONMENT, query for an optional argument and prompt
- [elpa] externals/auctex 8afd11e 03/62: ; Silence the compiler, (continued)
- [elpa] externals/auctex 8afd11e 03/62: ; Silence the compiler, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 2e196d2 07/62: ; Silence the compiler, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex bf30c11 05/62: Make "%o" compatible again with file name with spaces, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 9d0ccc1 13/62: Update style/fancyvrb.el to package version 3.6, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 00b2d73 12/62: Add missing argument to function body, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex e9af4f1 14/62: * style/fancyvrb.el: Replace dynamically bound `optional'., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 19cdfe0 22/62: Put point after the graphic file argrument, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex f7c0c73 01/62: Enable lexical-binding for AUCTeX core files, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 8951549 04/62: ; Trivial cleanups, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 96c945a 11/62: Remove `TeX-arg-none', Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 9656d30 21/62: Fix insertion of unnecessary backslash,
Tassilo Horn <=
- [elpa] externals/auctex b42e932 23/62: ; * style/graphicx.el: Fix Ataka-san's name and email., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex f9387c6 27/62: ; use with-no-warnings instead of with-suppressed-warnings for compat, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 384c1d2 08/62: Use declared dynamic variable in tex-jp, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 717e5f0 06/62: Simplify nested `let's, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex ced4b1a 10/62: Adapt styles to lexical-binding, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 42f061a 17/62: Improve style/amsthm.el, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 08d01c1 19/62: ; * style/changelog.el: Silence the compiler for `reftex-label-alist'., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 4c1430a 20/62: Add new style/appendix.el, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 5bffc24 24/62: ; * font-latex.el (font-latex-update-math-env): Fix docstring., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 072cfc7 28/62: ; Convert suffix to pattern rule, Tassilo Horn, 2020/12/20