Function: dirvish-revert
dirvish-revert is a natively compiled function defined in dirvish.el.
Signature
(dirvish-revert &optional IGNORE-AUTO NOCONFIRM)
Documentation
Reread the Dirvish buffer.
When IGNORE-AUTO, refresh file attributes as well.
Dirvish sets revert-buffer-function to this function.
Source Code
;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
;;;; Layout Build & Teardown
(defun dirvish-revert (&optional ignore-auto _noconfirm)
"Reread the Dirvish buffer.
When IGNORE-AUTO, refresh file attributes as well.
Dirvish sets `revert-buffer-function' to this function."
(dirvish-prop :old-index (dired-get-filename nil t))
(let ((dv (dirvish-curr)))
(dirvish--check-dependencies dv) ; update dirvish setups
(dirvish-prop :attrs (dv-attributes dv)))
(dolist (keyword '(:free-space :content-begin)) (dirvish-prop keyword nil))
(dired-revert)
(dirvish--hide-dired-header)
(when ignore-auto ; meaning it is called interactively from user
(setq-local dirvish--dir-data (dirvish--ht))
(dirvish--dir-data-async (dirvish-prop :root) (current-buffer)))
(run-hooks 'dirvish-after-revert-hook))