Function: dired-other-window
dired-other-window is an autoloaded, interactive and byte-compiled
function defined in dired.el.gz.
Signature
(dired-other-window DIRNAME &optional SWITCHES)
Documentation
"Edit" directory DIRNAME. Like dired but select in another window.
If this command needs to split the current window, it by default obeys
the user options split-height-threshold and split-width-threshold,
when it decides whether to split the window horizontally or vertically.
Probably introduced at or before Emacs version 26.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
;;;###autoload (keymap-set ctl-x-4-map "d" #'dired-other-window)
;;;###autoload
(defun dired-other-window (dirname &optional switches)
"\"Edit\" directory DIRNAME. Like `dired' but select in another window.
If this command needs to split the current window, it by default obeys
the user options `split-height-threshold' and `split-width-threshold',
when it decides whether to split the window horizontally or vertically."
(interactive (dired-read-dir-and-switches "in other window "))
(switch-to-buffer-other-window (dired-noselect dirname switches)))