bug#81559: 31.0.91; speedbar does not follow Dired and shell-dirtrack-mode
Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Sean Whitton <[email protected]> writes: > Daniel Mendler [14/Aug 5:25pm +02] wrote: >> Sean Whitton <[email protected]> writes: >> >>> A buffer will only default-directory nil if someone has specifically >>> set that, right? And generally it would be inadvisable. So this >>> condition will always be true? >> >> That's right. We could as well remove the condition. > > Let's do that, please prepare a patch. Okay, thanks. Attached. Daniel
0001-PATCH-speedbar-Follow-non-file-buffers-based-on-defa.patch
(text/x-diff, 1014 B)
From 64b460f456aed596690cb00adf515b74c774fec8 Mon Sep 17 00:00:00 2001 From: Daniel Mendler <[email protected]> Date: Sun, 9 Aug 2026 18:02:58 +0200 Subject: [PATCH] speedbar: Follow non-file buffers based on default-directory Speedbar updates when invoking "cd" in shell (`shell-dirtrack-mode') and `dired-mode'. bug#81559 * lisp/speedbar.el (speedbar-timer-fn): Remove `buffer-file-name' check. --- lisp/speedbar.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/speedbar.el b/lisp/speedbar.el index 47f72f56cd8..9fe638e28c9 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el @@ -2822,8 +2822,7 @@ speedbar-timer-fn (unless (and (or (member major-mode speedbar-ignored-modes) (and (eq af (speedbar-current-frame)) - (speedbar-window-current-window)) - (not (buffer-file-name))) + (speedbar-window-current-window))) ;; Always update for GUD. (not (string-equal "GUD" speedbar-initial-expansion-list-name))) -- 2.47.3