aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-26 22:52:13 +0000
committerRichard M. Stallman1993-05-26 22:52:13 +0000
commitec03e49cb6a3e2cb43f23e6e34ee6d90f60a1ba7 (patch)
treee63e025f748e2f30017ea87a5b163cd00f465233
parentd973d7691860e9638a9f4e08e93979adb5c57b24 (diff)
downloademacs-ec03e49cb6a3e2cb43f23e6e34ee6d90f60a1ba7.tar.gz
emacs-ec03e49cb6a3e2cb43f23e6e34ee6d90f60a1ba7.zip
(dired-other-frame): New function, with binding.
-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."
346 (interactive (dired-read-dir-and-switches "in other window ")) 346 (interactive (dired-read-dir-and-switches "in other window "))
347 (switch-to-buffer-other-window (dired-noselect dirname switches))) 347 (switch-to-buffer-other-window (dired-noselect dirname switches)))
348 348
349;;;###autoload (define-key ctl-x-5-map "d" 'dired-other-frame)
350;;;###autoload
351(defun dired-other-frame (dirname &optional switches)
352 "\"Edit\" directory DIRNAME. Like `dired' but makes a new frame."
353 (interactive (dired-read-dir-and-switches "in other frame "))
354 (switch-to-buffer-other-frame (dired-noselect dirname switches)))
355
349;;;###autoload 356;;;###autoload
350(defun dired-noselect (dir-or-list &optional switches) 357(defun dired-noselect (dir-or-list &optional switches)
351 "Like `dired' but returns the dired buffer as value, does not select it." 358 "Like `dired' but returns the dired buffer as value, does not select it."