[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 56b081e241 02/23: * tex.el (TeX-insert-macro): U
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 56b081e241 02/23: * tex.el (TeX-insert-macro): Use 'atomic-change-group' |
Date: |
Thu, 20 Oct 2022 14:53:16 -0400 (EDT) |
branch: externals/auctex
commit 56b081e241971ab497a669524b04f89dd9e6d8c7
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Tassilo Horn <tsdh@gnu.org>
* tex.el (TeX-insert-macro): Use 'atomic-change-group'
If the user aborts the command, we avoid keeping behind a partial
state by reverting all changes that might have made.
---
tex.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tex.el b/tex.el
index 1497f2281c..350d9e9003 100644
--- a/tex.el
+++ b/tex.el
@@ -3338,8 +3338,9 @@ is called with \\[universal-argument]."
'TeX-macro-history TeX-default-macro))))
(when (called-interactively-p 'any)
(setq TeX-default-macro symbol))
- (TeX-parse-macro symbol (cdr-safe (assoc symbol (TeX-symbol-list))))
- (run-hooks 'TeX-after-insert-macro-hook))
+ (atomic-change-group
+ (TeX-parse-macro symbol (cdr-safe (assoc symbol (TeX-symbol-list))))
+ (run-hooks 'TeX-after-insert-macro-hook)))
(defvar TeX-electric-macro-map
(let ((map (make-sparse-keymap)))
- [elpa] externals/auctex updated (0029ca410f -> d22387d0d2), Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 56b081e241 02/23: * tex.el (TeX-insert-macro): Use 'atomic-change-group',
Tassilo Horn <=
- [elpa] externals/auctex 16ef09b18c 15/23: Override built-in tex-mode, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex b36127cc74 10/23: * tex.el: Require seq.el for older Emacsen where not preloaded., Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 6baccb4054 16/23: Recognize '=' argument modifier, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex fe801f9e4a 11/23: Add support for the amsaddr package, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 324250f243 04/23: Support macros for key-val package or class options, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 48db5bdf84 03/23: Restore compatibility for BSD sed, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 10dbae9ab1 08/23: Add support for catchfilebetweentags package, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 567458f54f 07/23: Silence byte-compiler., Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 6b5f00bfac 01/23: Unquote lambdas in font-latex.el & tex-bar.el; add some FIXMEs, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 99470f080d 06/23: Close over list-strings from outer scope., Tassilo Horn, 2022/10/20