Function: treemacs--do-refresh
treemacs--do-refresh is a byte-compiled function defined in
treemacs-core-utils.el.
Signature
(treemacs--do-refresh BUFFER PROJECT)
Documentation
Execute the refresh process for BUFFER and PROJECT in that buffer.
Specifically extracted with the buffer to refresh being supplied so that filewatch mode can refresh multiple buffers at once. Will refresh every project when PROJECT is 'all.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs--do-refresh (buffer project)
"Execute the refresh process for BUFFER and PROJECT in that buffer.
Specifically extracted with the buffer to refresh being supplied so that
filewatch mode can refresh multiple buffers at once.
Will refresh every project when PROJECT is \\='all."
(with-current-buffer buffer
(treemacs-save-position
(progn
(treemacs--cancel-refresh-timer)
(run-hook-with-args
'treemacs-pre-refresh-hook
project curr-win-line curr-btn curr-state curr-file curr-node-path)
(if (eq 'all project)
(-each (treemacs-workspace->projects (treemacs-current-workspace)) #'treemacs-project->refresh!)
(treemacs-project->refresh! project)))
(run-hook-with-args
'treemacs-post-refresh-hook
project curr-win-line curr-btn curr-state curr-file curr-node-path)
(unless treemacs-silent-refresh
(treemacs-log "Refresh complete.")))))