Function: todo-revert-buffer

todo-revert-buffer is an interactive and byte-compiled function defined in todo-mode.el.gz.

Signature

(todo-revert-buffer &optional IGNORE-AUTO NOCONFIRM)

Documentation

Call revert-buffer, preserving buffer's current modes.

Also preserve category display, if applicable.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-revert-buffer (&optional ignore-auto noconfirm)
  "Call `revert-buffer', preserving buffer's current modes.
Also preserve category display, if applicable."
  (interactive (list (not current-prefix-arg)))
  (let ((revert-buffer-function nil))
    (revert-buffer ignore-auto noconfirm 'preserve-modes)
    (when (memq major-mode '(todo-mode todo-archive-mode))
      (save-excursion (todo-category-select))
      ;; revert-buffer--default calls after-find-file, which makes
      ;; buffer writable.
      (setq buffer-read-only t))))