[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 201/299: Disable electric-pair-mode.
From: |
Stefan Monnier |
Subject: |
[elpa] 201/299: Disable electric-pair-mode. |
Date: |
Sun, 02 Nov 2014 03:11:26 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 3cba1615e9d746e9e6cb26086d176c4460921b50
Author: Tassilo Horn <address@hidden>
Date: Fri Nov 29 07:48:26 2013 +0100
Disable electric-pair-mode.
* tex.el (VirTeX-common-initialization): Disable
`electric-pair-mode' (a global minor mode) in auctex buffers
because it interferes with auctex's pairing feature.
---
ChangeLog | 6 ++++++
tex.el | 8 +++++++-
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2838966..80f89d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-11-29 Tassilo Horn <address@hidden>
+
+ * tex.el (VirTeX-common-initialization): Disable
+ `electric-pair-mode' (a global minor mode) in auctex buffers
+ because it interferes with auctex's pairing feature.
+
2013-11-23 Mos� Giordano <address@hidden>
* latex.el (LaTeX-common-initialization):
diff --git a/tex.el b/tex.el
index 07c452e..ea882f6 100644
--- a/tex.el
+++ b/tex.el
@@ -3169,7 +3169,13 @@ The algorithm is as follows:
(when (or (not (file-exists-p (buffer-file-name)))
(eq TeX-master 'shared))
(TeX-master-file nil nil t))
- (TeX-update-style t)) nil t))
+ (TeX-update-style t)) nil t)
+ ;; AUCTeX brace pairing feature doesn't play nice with `electric-pair-mode'
+ ;; which is a global minor mode as of emacs 24.4.
+ (when (and (boundp 'electric-pair-mode)
+ (boundp 'electric-pair-inhibit-predicate))
+ (set (make-local-variable 'electric-pair-inhibit-predicate)
+ (lambda (char) t))))
;;; Hilighting
- [elpa] 184/299: Mention new tabular indentation in changes.texi., (continued)
- [elpa] 184/299: Mention new tabular indentation in changes.texi., Stefan Monnier, 2014/11/01
- [elpa] 185/299: Add completion for ProvidesPackage, ProvidesClass, and ProvidesFile., Stefan Monnier, 2014/11/01
- [elpa] 198/299: Declare expert macros and envs in biblatex style file., Stefan Monnier, 2014/11/01
- [elpa] 194/299: Distinguish normal and expert macros/envs., Stefan Monnier, 2014/11/01
- [elpa] 196/299: * bib-cite.el (bib-highlight-mouse): Change regexp to cope with multiple optional arguments of a macro., Stefan Monnier, 2014/11/01
- [elpa] 192/299: Revert "Distinguish common and advanced macros/envs.", Stefan Monnier, 2014/11/01
- [elpa] 197/299: Fix C-x ` (next-error) for compile commands., Stefan Monnier, 2014/11/01
- [elpa] 200/299: Fix of the fix, my fault., Stefan Monnier, 2014/11/01
- [elpa] 195/299: Better signature of expert declaration functions., Stefan Monnier, 2014/11/01
- [elpa] 204/299: Revert "Skip comment or file in parens in output.", Stefan Monnier, 2014/11/01
- [elpa] 201/299: Disable electric-pair-mode.,
Stefan Monnier <=
- [elpa] 191/299: Distinguish common and advanced macros/envs., Stefan Monnier, 2014/11/01
- [elpa] 207/299: Add font name completion in fontspec.el., Stefan Monnier, 2014/11/01
- [elpa] 202/299: Disable electric-pair-mode conditionally., Stefan Monnier, 2014/11/01
- [elpa] 205/299: Handle package messages with parenthesized text., Stefan Monnier, 2014/11/01
- [elpa] 208/299: Use TeX-electric-math in LaTeX-math-insert/cal., Stefan Monnier, 2014/11/01
- [elpa] 199/299: Fix bindings of narrowing functions., Stefan Monnier, 2014/11/01
- [elpa] 209/299: Fix a bug with reftex where tex-info and LaTeX interferred., Stefan Monnier, 2014/11/01
- [elpa] 206/299: New style files and a fix to imakeidx.el., Stefan Monnier, 2014/11/01
- [elpa] 203/299: Skip comment or file in parens in output., Stefan Monnier, 2014/11/01
- [elpa] 211/299: Adapt style/babel.el to babel 3.9., Stefan Monnier, 2014/11/01