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.
This commit is contained in:
parent
ea1ec0ed2e
commit
bdba72b671
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ An EVENT has the format
|
|||
(with-current-buffer buf
|
||||
(unless (derived-mode-p 'thread-list-mode)
|
||||
(thread-list-mode)
|
||||
(run-at-time 0 nil #'thread-list--timer-func buf)))
|
||||
(run-at-time thread-list-refresh-seconds nil
|
||||
#'thread-list--timer-func buf))
|
||||
(revert-buffer))
|
||||
(switch-to-buffer buf)))
|
||||
;; This command can be destructive if they don't know what they are
|
||||
;; doing. Kids, don't try this at home!
|
||||
|
|
Loading…
Add table
Reference in a new issue