[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 836e461 03/69: Don't use TRIM arg of split-strin
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 836e461 03/69: Don't use TRIM arg of split-string. |
Date: |
Sat, 26 Mar 2016 21:36:31 +0000 |
branch: externals/auctex
commit 836e46136286941fbbb87178d33df9087469421e
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Don't use TRIM arg of split-string.
* tex-buf.el (TeX-parse-error): Don't use TRIM arg of
`split-string' which is new in emacs 24.4.
---
tex-buf.el | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index e64c3a2..8aaf14d 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1540,12 +1540,15 @@ You might want to examine and modify the free variables
`file',
((match-beginning 3)
(let ((file (TeX-match-buffer 3))
(end (match-end 3)))
- ;; Trim, strip quotation marks and remove newlines if necessary
+ ;; Strip quotation marks and remove newlines if necessary
(when (or (eq (string-to-char file) ?\")
(string-match "[ \t\n]" file))
- (setq file (mapconcat 'identity
- (split-string file "[\"\n]+" nil "[ \t]")
- "")))
+ (setq file (mapconcat 'identity (split-string file "[\"\n]+")
"")))
+ ;; Trim whitespace at the front/end
+ (setq file
+ (progn
+ (string-match
"^[[:space:]]*\\(.*[^[:space:]]\\)[[:space:]]*$" file)
+ (match-string 1 file)))
(push file TeX-error-file)
(push nil TeX-error-offset)
(goto-char end))
- [elpa] externals/auctex updated (0a99c11 -> f1abcf8), Tassilo Horn, 2016/03/26
- [elpa] externals/auctex a7f4839 04/69: Fix Wrong type argument: characterp, nil error., Tassilo Horn, 2016/03/26
- [elpa] externals/auctex 836e461 03/69: Don't use TRIM arg of split-string.,
Tassilo Horn <=
- [elpa] externals/auctex d4059b8 02/69: Improve line wrap removal heuristics., Tassilo Horn, 2016/03/26
- [elpa] externals/auctex c34bf64 07/69: Merge branch 'master' into simplify-TeX-parse-error, Tassilo Horn, 2016/03/26
- [elpa] externals/auctex 524b45b 05/69: Merge branch 'master' into simplify-TeX-parse-error, Tassilo Horn, 2016/03/26
- [elpa] externals/auctex 8926369 06/69: Improve new-file regex., Tassilo Horn, 2016/03/26
- [elpa] externals/auctex f919468 01/69: Improve TeX error parsing., Tassilo Horn, 2016/03/26
- [elpa] externals/auctex 0731fff 10/69: Merge branch 'master' into simplify-TeX-parse-error, Tassilo Horn, 2016/03/26
- [elpa] externals/auctex 8cee4a7 12/69: Merge branch 'master' into simplify-TeX-parse-error, Tassilo Horn, 2016/03/26
- [elpa] externals/auctex 95bef06 21/69: Merge branch 'master' into simplify-TeX-parse-error, Tassilo Horn, 2016/03/26
- [elpa] externals/auctex 6f74661 11/69: Merge from master., Tassilo Horn, 2016/03/26
- [elpa] externals/auctex 901b20a 22/69: Merge branch 'master' into simplify-TeX-parse-error, Tassilo Horn, 2016/03/26