Function: pdf-view-revert-buffer
pdf-view-revert-buffer is an interactive and natively compiled
function defined in pdf-view.el.
Signature
(pdf-view-revert-buffer &optional IGNORE-AUTO NOCONFIRM)
Documentation
Revert buffer while preserving current modes.
Optional parameters IGNORE-AUTO and NOCONFIRM are defined as in
revert-buffer.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-view.el
(defun pdf-view-revert-buffer (&optional ignore-auto noconfirm)
"Revert buffer while preserving current modes.
Optional parameters IGNORE-AUTO and NOCONFIRM are defined as in
`revert-buffer'."
(interactive (list (not current-prefix-arg)))
;; Bind to default so that we can use pdf-view-revert-buffer as
;; revert-buffer-function. A binding of nil is needed in Emacs 24.3, but in
;; later versions the semantics that nil means the default function should
;; not relied upon.
(let ((revert-buffer-function (when (fboundp #'revert-buffer--default)
#'revert-buffer--default))
(after-revert-hook
(cons #'pdf-view--after-revert
after-revert-hook)))
(prog1
(revert-buffer ignore-auto noconfirm 'preserve-modes)
(pdf-view-decrypt-document)
(pdf-view-redisplay t))))