Hi all, In Emacs, punctuation characters typically expand abbrevs. An exception is TeX-insert-quote, which (in the default branch, without a prefix arg) calls "insert" rather than "self-insert-command", hence does not expand abbrevs. I don't see any good reason for this, so I propose the attached patch. Compare with TeX-insert-punctuation, for instance.
Thanks, best, Paul
>From 4c4246953aa2e3d71993aea31c0ebeb76a1436dd Mon Sep 17 00:00:00 2001 From: Paul Nelson <[email protected]> Date: Sat, 31 May 2025 20:19:30 +0200 Subject: [PATCH] Expand abbreviations before inserting quotes * tex.el (TeX-insert-quote): Expand abbreviations before inserting quotes. --- tex.el | 1 + 1 file changed, 1 insertion(+) diff --git a/tex.el b/tex.el index 62fc217b..9aa9e8a8 100644 --- a/tex.el +++ b/tex.el @@ -6450,6 +6450,7 @@ With prefix argument FORCE, always inserts \" characters." (texmathp) (and (TeX-in-comment) (not (eq major-mode 'docTeX-mode)))) (self-insert-command (prefix-numeric-value force)) + (expand-abbrev) (TeX-update-style) (pcase-let ((`(,open-quote ,close-quote ,q-after-q) (TeX-get-quote-characters))) -- 2.39.3 (Apple Git-145)
_______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
