[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa e4b2e6a 24/35: Make TeX-previous-error go backward
From: |
Tassilo Horn |
Subject: |
[elpa] elpa e4b2e6a 24/35: Make TeX-previous-error go backward |
Date: |
Thu, 1 Sep 2016 15:57:50 +0000 (UTC) |
branch: elpa
commit e4b2e6a76965156257a19bd65f9bc76dfb743b6e
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Make TeX-previous-error go backward
* tex-buf.el (TeX-parse-TeX): Decrease `TeX-error-last-visited' when
`arg' is negative. This fixes the behavior of `TeX-previous-error'.
---
tex-buf.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index 431c011..575c1ed 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -2319,7 +2319,10 @@ already in an Emacs buffer) and the cursor is placed at
the error."
;; `TeX-suppress-ignored-warnings' is non-nil and there are ignore
;; warnings.
(while (null (zerop arg))
- (setq TeX-error-last-visited (1+ TeX-error-last-visited)
+ (setq TeX-error-last-visited
+ ;; Increase or decrese `TeX-error-last-visited' depending on
+ ;; the sign of `arg'.
+ (+ (signum arg) TeX-error-last-visited)
item (if (natnump TeX-error-last-visited)
(nth TeX-error-last-visited TeX-error-list)
;; XEmacs doesn't support `nth' with a negative
index.
@@ -2327,9 +2330,7 @@ already in an Emacs buffer) and the cursor is placed at
the error."
;; Increase or decrease `arg' only if the warning isn't to be
;; skipped.
(unless (TeX-error-list-skip-warning-p (nth 0 item) (nth 10 item))
- (setq arg (if (> arg 0)
- (1- arg)
- (1+ arg)))))
+ (setq arg (- arg (signum arg)))))
(if (< TeX-error-last-visited -1)
(setq TeX-error-last-visited -1))
(cond ((or (null item)
- [elpa] elpa updated (8eca45c -> a474cb4), Tassilo Horn, 2016/09/01
- [elpa] elpa 2388815 07/35: Change test for PDF Tools availability, Tassilo Horn, 2016/09/01
- [elpa] elpa 7d5c9ba 20/35: ; Add missing macro \DeclareRightDelimiter, Tassilo Horn, 2016/09/01
- [elpa] elpa 5232279 21/35: Remove obsolete TeX-function-p function, Tassilo Horn, 2016/09/01
- [elpa] elpa e4b2e6a 24/35: Make TeX-previous-error go backward,
Tassilo Horn <=
- [elpa] elpa fad3600 17/35: Add new style/pdflscape.el, Tassilo Horn, 2016/09/01
- [elpa] elpa 98a83e9 08/35: Fix to doc/auctex.texi, Tassilo Horn, 2016/09/01
- [elpa] elpa f375c1f 22/35: Fold environments with * in name, Tassilo Horn, 2016/09/01
- [elpa] elpa 9e3230f 28/35: Use `TeX-ispell-skip-setcdr' on user defined list environments, Tassilo Horn, 2016/09/01
- [elpa] elpa e45c6d9 18/35: Add new style/commath.el, Tassilo Horn, 2016/09/01
- [elpa] elpa 29d4cb4 05/35: Document TeX-raise-frame-function, Tassilo Horn, 2016/09/01
- [elpa] elpa 25bdcb2 31/35: Add new style/framed.el, Tassilo Horn, 2016/09/01
- [elpa] elpa 5745c81 02/35: Fix compatibility with GNU Emacs < 24, Tassilo Horn, 2016/09/01
- [elpa] elpa c1a2b33 10/35: ; Add missing space in prompt, Tassilo Horn, 2016/09/01
- [elpa] elpa 7f91fb9 06/35: More about TeX-raise-frame-function, Tassilo Horn, 2016/09/01