Function: ebrowse-revert-tree-buffer-from-file

ebrowse-revert-tree-buffer-from-file is a byte-compiled function defined in ebrowse.el.gz.

Signature

(ebrowse-revert-tree-buffer-from-file IGNORE-AUTO-SAVE NOCONFIRM)

Documentation

Function installed as revert-buffer-function in tree buffers.

See that variable's documentation for the meaning of IGNORE-AUTO-SAVE and NOCONFIRM.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
(defun ebrowse-revert-tree-buffer-from-file (_ignore-auto-save noconfirm)
  "Function installed as `revert-buffer-function' in tree buffers.
See that variable's documentation for the meaning of IGNORE-AUTO-SAVE and
NOCONFIRM."
  (when (or noconfirm (yes-or-no-p "Revert tree from disk? "))
    (mapc #'kill-buffer (ebrowse-same-tree-member-buffer-list))
    (erase-buffer)
    (with-no-warnings
      (insert-file (or buffer-file-name ebrowse--tags-file-name)))
    (ebrowse-tree-mode)
    (current-buffer)))