auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. d1d99ae8bbdfd55893ffa


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. d1d99ae8bbdfd55893ffa851b931b7b617612301
Date: Thu, 22 Apr 2021 01:46:17 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  d1d99ae8bbdfd55893ffa851b931b7b617612301 (commit)
      from  b64120410f1a7a7c6231cbb50c54b22d00569288 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d1d99ae8bbdfd55893ffa851b931b7b617612301
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Date:   Thu Apr 22 14:32:40 2021 +0900

    Get rid of unexpected side effects
    
    * latex.el (LaTeX-insert-left-brace): Use `insert' instead of
    `self-insert-command' to avoid all unexpected interactions.
    (LaTeX-insert-corresponding-right-macro-and-brace)
    (LaTeX-common-initialization):
    Remove codes which is no longer necessary.

diff --git a/latex.el b/latex.el
index c6e0a62..c8370c5 100644
--- a/latex.el
+++ b/latex.el
@@ -2899,7 +2899,7 @@ Normally bound to keys \(, { and [."
              (TeX-active-mark)
              (> (point) (mark)))
         (exchange-point-and-mark))
-    (self-insert-command (prefix-numeric-value arg))
+    (insert (make-string (prefix-numeric-value arg) last-command-event))
     (if auto-p
         (let ((lbrace (char-to-string last-command-event)) lmacro skip-p)
           (save-excursion
@@ -2979,10 +2979,6 @@ is nil, consult user which brace should be used."
     (if rmacro
         (insert TeX-esc rmacro))
     (cond
-     ((and electric-pair-mode
-           (string= (char-to-string last-command-event) lbrace))
-      ;; Do nothing as `electric-pair-mode' closes for us.
-      nil)
      ((and TeX-arg-right-insert-p rbrace)
       (insert rbrace))
      (rmacro
@@ -6814,13 +6810,6 @@ function would return non-nil and `(match-string 1)' 
would return
 
   (define-key LaTeX-mode-map "\C-xne" #'LaTeX-narrow-to-environment)
 
-  ;; AUCTeX's brace pairing feature (`LaTeX-electric-left-right-brace') doesn't
-  ;; play nice with `electric-pair-mode' which is a global minor mode as of
-  ;; emacs 24.4.
-  (when (and LaTeX-electric-left-right-brace
-             (boundp 'electric-pair-mode))
-    (set (make-local-variable 'electric-pair-mode) nil))
-
   ;; Initialization of `add-log-current-defun-function':
   (set (make-local-variable 'add-log-current-defun-function)
        #'TeX-current-defun-name))

-----------------------------------------------------------------------

Summary of changes:
 latex.el | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

[Prev in Thread] Current Thread [Next in Thread]