[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 486650b 05/43: Update menu in proper timing (bug
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 486650b 05/43: Update menu in proper timing (bug#38058) |
Date: |
Sat, 11 Apr 2020 15:05:18 -0400 (EDT) |
branch: externals/auctex
commit 486650b0ba71e2f25b5ca83087ce8a6be7a94c12
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Update menu in proper timing (bug#38058)
* tex-buf.el (TeX-command-sentinel): Do `force-mode-line-update' in
the command buffer so that "Next Error" item will appear in the menu
bar just after compilation.
Replace all `(set-buffer-modified-p (buffer-modified-p))' with
`(force-mode-line-update)'
(TeX-run-command): Remove `sit-for' call which is no longer
necessary.
---
tex-buf.el | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index 9aaa585..3cc6d54 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1134,8 +1134,7 @@ Return the new process."
(setq compilation-in-progress (cons process compilation-in-progress))
process)
(setq mode-line-process ": run")
- (set-buffer-modified-p (buffer-modified-p))
- (sit-for 0) ; redisplay
+ (force-mode-line-update)
(call-process TeX-shell nil buffer nil
TeX-shell-command-option command))))
@@ -1444,7 +1443,7 @@ reasons. Use `TeX-run-function' instead."
(apply TeX-sentinel-function nil name nil)
;; Force mode line redisplay soon
- (set-buffer-modified-p (buffer-modified-p)))))
+ (force-mode-line-update))))
(defun TeX-command-sentinel (process msg)
"Process TeX command output buffer after the process dies."
@@ -1480,10 +1479,15 @@ reasons. Use `TeX-run-function' instead."
;; If buffer and mode line will show that the process
;; is dead, we can delete it now. Otherwise it
;; will stay around until M-x list-processes.
- (delete-process process)
+ (delete-process process))
+
+ ;; Force mode line redisplay soon
+ ;; Do this in the command buffer so that "Next Error" item
+ ;; will appear in the menu bar just after compilation.
+ ;; (bug#38058)
+ (with-current-buffer TeX-command-buffer
+ (force-mode-line-update)))))
- ;; Force mode line redisplay soon
- (set-buffer-modified-p (buffer-modified-p))))))
(setq compilation-in-progress (delq process compilation-in-progress)))
@@ -1944,7 +1948,7 @@ command."
"Format the mode line for a buffer containing output from PROCESS."
(setq mode-line-process (concat ": "
(symbol-name (process-status process))))
- (set-buffer-modified-p (buffer-modified-p)))
+ (force-mode-line-update))
(defun TeX-command-filter (process string)
"Filter to process normal output."
@@ -1963,7 +1967,7 @@ command."
"Format the mode line for a buffer containing TeX output from PROCESS."
(setq mode-line-process (concat " " TeX-current-page ": "
(symbol-name (process-status process))))
- (set-buffer-modified-p (buffer-modified-p)))
+ (force-mode-line-update))
(defun TeX-format-filter (process string)
"Filter to process TeX output."
- [elpa] externals/auctex updated (817b1c4 -> f571914), Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 7c48889 03/43: ; * style/fbox.el: Fix wrong package version., Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 19716fb 01/43: ; Add ELPA release process description, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 8a2cdac 02/43: Add new style/fbox.el, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 8927ed6 04/43: Update style/ltugboat.el to class version 2.22, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 7f60ef7 12/43: Update Pygments styles to version 2.5.2, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 486650b 05/43: Update menu in proper timing (bug#38058),
Tassilo Horn <=
- [elpa] externals/auctex 13e6746 13/43: Delete insertion of wrong dollar sign, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 8cd9db3 17/43: Add changelog for my previous bug fix, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex f700ec0 16/43: Support extended NFSS shapes with 2020-02-02 LaTeX kernel, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 45f0298 07/43: * font-latex.el (font-latex-setup): Remove XEmacs compat code., Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 6c25ffe 08/43: Adjust Makefile clean targets, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 1d72a5c 21/43: Remove compatibility code for older emacsen, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 3424aae 15/43: Update style/fbox.el to package version 0.04, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex c1e0419 23/43: Adjust style/fontaxes.el to LaTeX kernel, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 0bc0ff5 29/43: Add fontification support \textnormal macro, Tassilo Horn, 2020/04/11
- [elpa] externals/auctex 07efee4 31/43: Add new style/ltxguide.el, Tassilo Horn, 2020/04/11