[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex bd723c7 24/71: Cater for corner c
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex bd723c7 24/71: Cater for corner case when dealing with TeX error |
Date: |
Fri, 17 Dec 2021 15:00:29 -0500 (EST) |
branch: externals/auctex
commit bd723c7405bf5b241350f9c850e3dde793374ed7
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Cater for corner case when dealing with TeX error
* tex-buf.el (TeX-find-display-help): Don't try to open error file
when it wasn't found.
Some cleanups.
---
tex-buf.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index 50de4d5..ceafafe 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -2698,8 +2698,7 @@ value is not used here."
;; Set the value of `TeX-command-buffer' in the next file
;; with an error to be displayed to the value it has in the
;; current buffer.
- (with-current-buffer error-file-buffer
- (setq-local TeX-command-buffer command-buffer))
+ (setq-local TeX-command-buffer command-buffer)
;; Find the location of the error or warning.
(when TeX-translate-location-line
@@ -2724,16 +2723,16 @@ value is not used here."
(search-forward TeX-translate-location-string nil t))))))
;; When the file cannot be determined stay here but issue a
;; warning.
- (message (concat "Could not determine file for "
- (cond ((equal type 'error) "error")
- (t "warning"))))
+ (message "Could not determine file for %s"
+ (if (eq type 'error) "error" "warning"))
(beep))
;; Display the help.
(cond ((eq TeX-display-help 'expert)
(TeX-pop-to-buffer runbuf nil t)
(goto-char error-point)
- (TeX-pop-to-buffer error-file-buffer nil t))
+ (if error-file-buffer
+ (TeX-pop-to-buffer error-file-buffer nil t)))
(TeX-display-help
(TeX-help-error
TeX-translate-location-error
@@ -2742,7 +2741,7 @@ value is not used here."
TeX-translate-location-context)
runbuf type))
(t
- (message (concat "! " TeX-translate-location-error))))))
+ (message "! %s" TeX-translate-location-error)))))
(defun TeX-error (&optional store)
"Display an error.
- [AUCTeX-diffs] [elpa] externals/auctex 44a8a42 09/71: ; Don't use `assoc-delete-all', (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 44a8a42 09/71: ; Don't use `assoc-delete-all', Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 22e4415 68/71: Add styles for packages from sttools collection, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex ae2d7ef 23/71: Silence compiler warning, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 6433dc3 30/71: Extend `TeX-read-key-val' to accept a function call, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex c6350aa 07/71: Track standardized generic hook names in LaTeX kernel, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 8e0fb65 47/71: Improve handling of key=vals in style/listings.el, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex accfe51 58/71: Add new style/xr-hyper.el, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 483f6e9 05/71: ; * style/hyperref.el ("hyperref"): Fix other link to testform.tex., Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 0c01b75 13/71: ; * doc/changes.texi: Fix a markup., Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex ee37db3 33/71: Supplement doc string, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex bd723c7 24/71: Cater for corner case when dealing with TeX error,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 2e968b6 36/71: ; Fix escapings, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex b379da7 18/71: Don't indent begin/end of comment env, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 08f5c9e 51/71: Improve handling of key=vals in style/floatrow.el, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex df69443 26/71: ; Silence the compiler, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 0419539 37/71: Improve style/babel.el, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex d62d8f3 34/71: Update style/fontspec.el to package version 2.7i, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 9e97edc 49/71: Fix wrong logic of the previous commit, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 8c50665 62/71: Add new style/unicodefonttable.el, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 7b632c6 43/71: * doc/todo.texi (Mid-term Goals): Add TODO about tool bar., Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 7c4147b 57/71: Improve handling of key=vals in style/tcolorbox.el, Tassilo Horn, 2021/12/17