[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex ae2d7ef 23/71: Silence compiler warning
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex ae2d7ef 23/71: Silence compiler warning |
Date: |
Fri, 17 Dec 2021 15:00:29 -0500 (EST) |
branch: externals/auctex
commit ae2d7efd50ba16bbde5d6f71e593f92827621ca4
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Silence compiler warning
* tex-buf.el (TeX-parse-TeX):
(TeX-error-overview-goto-source):
Don't let-bind `default-major-mode'.
(TeX-find-display-help): Fall back to the major mode of command
buffer.
---
tex-buf.el | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index a36bda8..50de4d5 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -2434,8 +2434,6 @@ If REPARSE is non-nil, reparse the output log.
If the file occurs in an included file, the file is loaded (if not
already in an Emacs buffer) and the cursor is placed at the error."
(let ((old-buffer (current-buffer))
- ;; FIXME: default-major-mode has been removed in Emacs 26.
- (default-major-mode major-mode)
max-index item)
;; Switch to the output buffer.
@@ -2693,6 +2691,10 @@ value is not used here."
(find-file
(expand-file-name TeX-translate-location-file
(file-name-directory master))))
+ ;; Use the major mode of `TeX-command-buffer' when visiting
+ ;; the error point.
+ (if (eq major-mode (default-value 'major-mode))
+ (funcall (buffer-local-value 'major-mode command-buffer)))
;; 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.
@@ -3141,12 +3143,8 @@ please restart TeX error overview")))
TeX-error-last-visited index))
;; Find the error and display the help.
(with-current-buffer TeX-command-buffer
- ;; For consistency with `TeX-parse-TeX', use the major mode of
- ;; `TeX-command-buffer' when visiting the error point.
- ;; FIXME: default-major-mode has been removed in Emacs 26.
- (let ((default-major-mode major-mode))
- ;; Find the error and display the help.
- (apply #'TeX-find-display-help item)))
+ ;; Find the error and display the help.
+ (apply #'TeX-find-display-help item))
;; Return to the error overview.
(if (TeX-error-overview-setup)
(select-frame TeX-error-overview-frame)
- [elpa] externals/auctex 363b778 56/71: Update style/multicol.el to package version 1.9b, (continued)
- [elpa] externals/auctex 363b778 56/71: Update style/multicol.el to package version 1.9b, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 22e4415 68/71: Add styles for packages from sttools collection, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex b866110 31/71: Autoload `TeX-check-engine-add-engines' in tex.el, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 0322057 55/71: Fix misc minor issues, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 9f3e760 10/71: Recognize L3 \msg_line_context: on warning parsing, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 44a8a42 09/71: ; Don't use `assoc-delete-all', Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 0c01b75 13/71: ; * doc/changes.texi: Fix a markup., Tassilo Horn, 2021/12/17
- [elpa] externals/auctex fd73414 11/71: ; * doc/changes.texi: Add supplementary notice., Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 7fa094f 14/71: ; * style/tabulary.el ("tabulary"): Really append the entry., Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 464fd34 20/71: * tests/latex/latex-test.el (LaTeX-flush-left-indent): New test., Tassilo Horn, 2021/12/17
- [elpa] externals/auctex ae2d7ef 23/71: Silence compiler warning,
Tassilo Horn <=
- [elpa] externals/auctex f6dd4a4 25/71: ; Silence the compiler, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex df0d719 52/71: Improve handling of key=vals in style/hologo.el, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 08f5c9e 51/71: Improve handling of key=vals in style/floatrow.el, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 9fa3859 38/71: ; Remove duplicates, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 7b632c6 43/71: * doc/todo.texi (Mid-term Goals): Add TODO about tool bar., Tassilo Horn, 2021/12/17
- [elpa] externals/auctex b379da7 18/71: Don't indent begin/end of comment env, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 483f6e9 05/71: ; * style/hyperref.el ("hyperref"): Fix other link to testform.tex., Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 380bc4a 06/71: Handle optional embellishment arguments correctly, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex bd723c7 24/71: Cater for corner case when dealing with TeX error, Tassilo Horn, 2021/12/17
- [elpa] externals/auctex 6433dc3 30/71: Extend `TeX-read-key-val' to accept a function call, Tassilo Horn, 2021/12/17