emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master bb9d5d0: Make ls-lisp--dired ape dired-noselect mor


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master bb9d5d0: Make ls-lisp--dired ape dired-noselect more closely
Date: Sun, 23 Jun 2019 13:25:36 -0400 (EDT)

branch: master
commit bb9d5d0dae299b201be2523a064078accbc76d47
Author: Drew Adams <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Make ls-lisp--dired ape dired-noselect more closely
    
    * lisp/ls-lisp.el (ls-lisp--dired): Emulate the behaviour of
    non-ls-lisp.el dired better by defaulting to default-directory as
    dired-noselect does (bug#35390).
---
 lisp/ls-lisp.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index 1f2c468..66c56f0 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -488,6 +488,8 @@ not contain `d', so that a full listing is expected."
 
 (defun ls-lisp--dired (orig-fun dir-or-list &optional switches)
   (interactive (dired-read-dir-and-switches ""))
+  (unless dir-or-list
+    (setq dir-or-list default-directory))
   (if (consp dir-or-list)
       (funcall orig-fun dir-or-list switches)
     (let ((dir-wildcard (insert-directory-wildcard-in-dir-p



reply via email to

[Prev in Thread] Current Thread [Next in Thread]