[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex c3a21f2 04/57: Print only first l
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex c3a21f2 04/57: Print only first line of the message in error overview |
Date: |
Wed, 11 Jan 2017 18:01:37 +0000 (UTC) |
branch: externals/auctex
commit c3a21f2c6a23f229c8080dc55599d3df755e501f
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Print only first line of the message in error overview
* tex-buf.el (TeX-error-overview-make-entries): Use `push' in place of
`add-to-list'. Print only the first line of the message.
---
tex-buf.el | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index 07bb78b..6497777 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -3429,8 +3429,7 @@ errors. If nil, defaults to
`TeX-error-overview-active-buffer'."
msg (nth 3 entry))
;; Add the entry only if it isn't to be skipped.
(unless (TeX-error-list-skip-warning-p type (nth 10 entry))
- (add-to-list
- 'entries
+ (push
(list
;; ID.
id
@@ -3458,15 +3457,22 @@ errors. If nil, defaults to
`TeX-error-overview-active-buffer'."
(t
""))
;; Message.
- (list (if (stringp msg) msg "")
+ (list (if (stringp msg)
+ ;; Sometimes, the message can be longer than one line,
+ ;; but print here only the first one.
+ (progn
+ (string-match "^.*" msg)
+ (match-string 0 msg))
+ "")
'face 'link
'follow-link t
'id id
- 'action 'TeX-error-overview-goto-source))) t))
+ 'action 'TeX-error-overview-goto-source)))
+ entries))
;; Increase the `id' counter in any case.
(setq id (1+ id)))
TeX-error-list)
- entries)))
+ (reverse entries))))
(defun TeX-error-overview-next-error (&optional arg)
"Move to the next line and find the associated error.
- [AUCTeX-diffs] [elpa] externals/auctex 69fc320 27/57: Add a newline only if \label is inserted, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 69fc320 27/57: Add a newline only if \label is inserted, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 343ca9c 36/57: Fix script unfontification bug, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 0e54895 34/57: Improve completion docs, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 436371c 31/57: Add completion-at-point support, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex e9c4b68 35/57: ; * doc/auctex.texi (Completion): Use @defun and not @deffn., Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 93b1163 50/57: * ChangeLog-preview: Change encoding to UTF-8., Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 4ebbf90 56/57: Make gitlog-to-changelog ignore release-commit, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 5af3c8e 15/57: Add \switchcolumn to paragraph commands, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex bfc7e90 16/57: Fix fontification for natbib compat macros, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex ccec850 24/57: Remove multi-level/invisible feature of font-latex-fontify-script, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex c3a21f2 04/57: Print only first line of the message in error overview,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 890163e 26/57: Bring back multi-level script font-locking, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 00df9a5 37/57: Check new custom option before activating RefTeX cite format, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 7ef680c 52/57: Refresh RELEASE file, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex c70b7f9 21/57: Add new style/exam.sty, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex bdc5d0d 11/57: Add new style/mdframed.el, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 6fe7a2e 43/57: Prepare for upcoming release, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 33a6ff8 48/57: ; Change email address., Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 1354c70 44/57: Advertise AUCTeX installation from ELPA, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex 3dca7c4 57/57: Merge branch 'master' into externals/auctex, Tassilo Horn, 2017/01/11
- [AUCTeX-diffs] [elpa] externals/auctex ec3996d 08/57: Query for optional float position, Tassilo Horn, 2017/01/11