[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Modifying error handling
From: |
Ikumi Keita |
Subject: |
[AUCTeX-devel] Modifying error handling |
Date: |
Thu, 20 Apr 2017 03:42:29 +0900 |
Hi all,
I'm going to check in the following change. Since loading tex-jp.el
replaces `TeX-error-description-list' with Japanese help messages,
comparison with a fixed string "No help available" no longer works after
that. Rather we should test whether `TeX-error-pointer' comes to the
last element of `TeX-error-description-list'.
diff --git a/tex-buf.el b/tex-buf.el
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -3306,7 +3306,8 @@
(let ((help (cdr (nth TeX-error-pointer
TeX-error-description-list))))
(save-excursion
- (if (and (string= help "No help available")
+ (if (and (= (1+ TeX-error-pointer)
+ (length TeX-error-description-list))
(let* ((log-buffer (find-buffer-visiting log-file)))
(if log-buffer
(progn
Though I have done a brief test with this change, feel free to revert
the commit if you find any problems with this.
Bye,
Ikumi Keita
- [AUCTeX-devel] Modifying error handling,
Ikumi Keita <=