summaryrefslogtreecommitdiff
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-05-26 22:52:13 +0000
committerRichard M. Stallman <rms@gnu.org>1993-05-26 22:52:13 +0000
commitec03e49cb6a3e2cb43f23e6e34ee6d90f60a1ba7 (patch)
treee63e025f748e2f30017ea87a5b163cd00f465233 /lisp/dired.el
parentd973d7691860e9638a9f4e08e93979adb5c57b24 (diff)
downloademacs-ec03e49cb6a3e2cb43f23e6e34ee6d90f60a1ba7.tar.gz
(dired-other-frame): New function, with binding.
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 9b1ca12aebc..4f431c703db 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -346,6 +346,13 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
(interactive (dired-read-dir-and-switches "in other window "))
(switch-to-buffer-other-window (dired-noselect dirname switches)))
+;;;###autoload (define-key ctl-x-5-map "d" 'dired-other-frame)
+;;;###autoload
+(defun dired-other-frame (dirname &optional switches)
+ "\"Edit\" directory DIRNAME. Like `dired' but makes a new frame."
+ (interactive (dired-read-dir-and-switches "in other frame "))
+ (switch-to-buffer-other-frame (dired-noselect dirname switches)))
+
;;;###autoload
(defun dired-noselect (dir-or-list &optional switches)
"Like `dired' but returns the dired buffer as value, does not select it."