branch: externals/mpdired commit 77a5b2aae8567e5f114108d31eef0840d45e4589 Author: Manuel Giraud <man...@ledu-giraud.fr> Commit: Manuel Giraud <man...@ledu-giraud.fr>
mpdired--directory is global and only set in one place --- mpdired.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mpdired.el b/mpdired.el index cb5f325bde..e3c8b25175 100644 --- a/mpdired.el +++ b/mpdired.el @@ -83,9 +83,11 @@ (defun mpdired--browser-name (host service localp) (format "*MPDired Browser (%s)*" (mpdired--hostname host service localp))) -;; State variables for the browser -(defvar-local mpdired--directory nil +;; Global state variables. +(defvar mpdired--directory nil "Current directory of the browser buffer.") + +;; State variables for the browser (defvar-local mpdired--comm-buffer nil "Communication buffer associated to this browser.") @@ -198,7 +200,6 @@ (erase-buffer) (setq mpdired--last-command 'listall mpdired--previous-directory mpdired--directory - mpdired--directory path mpdired--ascending-p ascending-p) (process-send-string process (format "listall \"%s\"\n" path))))))