[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 9cfd5d895aad0fa2399f5
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 9cfd5d895aad0fa2399f5fcca7f3a08c0a153f20 |
Date: |
Tue, 22 Sep 2015 13:34:09 +0000 |
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 9cfd5d895aad0fa2399f5fcca7f3a08c0a153f20 (commit)
from 4cfe30ea8ae4f8a54c2f5af603680f207c4c8a6a (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 9cfd5d895aad0fa2399f5fcca7f3a08c0a153f20
Author: Tassilo Horn <address@hidden>
Date: Tue Sep 22 15:33:49 2015 +0200
Improve LaTeX-find-matching-end
* latex.el (LaTeX-find-matching-end): Find correct end when point
is already on the name in \end{name}.
diff --git a/ChangeLog b/ChangeLog
index 5ad0ddf..94040d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-22 Tassilo Horn <address@hidden>
+
+ * latex.el (LaTeX-find-matching-end): Find correct end when point
+ is already on the name in \end{name}.
+
2015-09-20 Mosè Giordano <address@hidden>
* .gitignore: Do not ignore auto.el.
diff --git a/latex.el b/latex.el
index 8f613c2..2aa2d94 100644
--- a/latex.el
+++ b/latex.el
@@ -4198,13 +4198,14 @@ environment in commented regions with the same comment
prefix."
(in-comment (TeX-in-commented-line))
(comment-prefix (and in-comment (TeX-comment-prefix)))
(case-fold-search nil))
- (save-excursion
+ (let ((pt (point)))
(skip-chars-backward (concat "a-zA-Z \t" (regexp-quote TeX-grop)))
(unless (bolp)
(backward-char 1)
- (and (looking-at regexp)
- (char-equal (char-after (1+ (match-beginning 0))) ?e)
- (setq level 0))))
+ (if (and (looking-at regexp)
+ (char-equal (char-after (1+ (match-beginning 0))) ?e))
+ (setq level 0)
+ (goto-char pt))))
(while (and (> level 0) (re-search-forward regexp nil t))
(when (or (and LaTeX-syntactic-comments
(eq in-comment (TeX-in-commented-line))
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
latex.el | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU AUCTeX
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 9cfd5d895aad0fa2399f5fcca7f3a08c0a153f20,
Tassilo Horn <=