Function: dired-tree-up
dired-tree-up is an autoloaded, interactive and byte-compiled function
defined in dired-aux.el.gz.
Signature
(dired-tree-up ARG)
Documentation
Go up ARG levels in the Dired tree.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
;;;###autoload
(defun dired-tree-up (arg)
"Go up ARG levels in the Dired tree."
(interactive "p" dired-mode)
(let ((dir (dired-current-directory)))
(while (>= arg 1)
(setq arg (1- arg)
dir (file-name-directory (directory-file-name dir))))
;;(setq dir (expand-file-name dir))
(or (dired-goto-subdir dir)
(error "Cannot go up to %s - not in this tree" dir))))