diff options
| author | Gemini Lasswell | 2018-08-13 15:45:11 -0700 |
|---|---|---|
| committer | Gemini Lasswell | 2018-09-09 07:41:49 -0700 |
| commit | bdba72b67199c0899b2e416bf818d240252f8700 (patch) | |
| tree | 3138daf4b40537e6bae504f60a02b6dac8b6054e | |
| parent | ea1ec0ed2e6ebbd4650aa5a7d662f2568f1d858f (diff) | |
| download | emacs-bdba72b67199c0899b2e416bf818d240252f8700.tar.gz emacs-bdba72b67199c0899b2e416bf818d240252f8700.zip | |
Make list-threads refresh the *Threads* buffer if it already exists
* lisp/thread.el (list-threads): Call revert-buffer instead of waiting
for the timer function to do it.
| -rw-r--r-- | lisp/thread.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/thread.el b/lisp/thread.el index c4a4c113570..4cd253e2cf5 100644 --- a/lisp/thread.el +++ b/lisp/thread.el | |||
| @@ -84,7 +84,9 @@ An EVENT has the format | |||
| 84 | (with-current-buffer buf | 84 | (with-current-buffer buf |
| 85 | (unless (derived-mode-p 'thread-list-mode) | 85 | (unless (derived-mode-p 'thread-list-mode) |
| 86 | (thread-list-mode) | 86 | (thread-list-mode) |
| 87 | (run-at-time 0 nil #'thread-list--timer-func buf))) | 87 | (run-at-time thread-list-refresh-seconds nil |
| 88 | #'thread-list--timer-func buf)) | ||
| 89 | (revert-buffer)) | ||
| 88 | (switch-to-buffer buf))) | 90 | (switch-to-buffer buf))) |
| 89 | ;; This command can be destructive if they don't know what they are | 91 | ;; This command can be destructive if they don't know what they are |
| 90 | ;; doing. Kids, don't try this at home! | 92 | ;; doing. Kids, don't try this at home! |