branch: externals/auctex
commit 93363d31b7ad7a6ab92eb7cd5cb741f22469ea3b
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
Follow up previous commit
* latex.el (LaTeX-insert-left-brace): Let side effects of
self-insertion, such as electric paring, to occur when this function
doesn't do special treatment.
---
latex.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/latex.el b/latex.el
index c8370c5..767fe21 100644
--- a/latex.el
+++ b/latex.el
@@ -2899,9 +2899,9 @@ Normally bound to keys \(, { and [."
(TeX-active-mark)
(> (point) (mark)))
(exchange-point-and-mark))
- (insert (make-string (prefix-numeric-value arg) last-command-event))
(if auto-p
(let ((lbrace (char-to-string last-command-event)) lmacro skip-p)
+ (insert last-command-event)
(save-excursion
(backward-char)
;; The brace "{" is exceptional in two aspects.
@@ -2930,7 +2930,8 @@ Normally bound to keys \(, { and [."
(if (TeX-active-mark)
(goto-char (mark)))
(LaTeX-insert-corresponding-right-macro-and-brace
- lmacro lbrace)))))))
+ lmacro lbrace))))
+ (self-insert-command (prefix-numeric-value arg)))))
;; Cater for `delete-selection-mode' (bug#36385)
;; See the header comment of delsel.el for detail.
(put #'LaTeX-insert-left-brace 'delete-selection