Function: save-place-find-file-hook

save-place-find-file-hook is a byte-compiled function defined in saveplace.el.gz.

Signature

(save-place-find-file-hook)

Documentation

Function added to find-file-hook by save-place-mode(var)/save-place-mode(fun).

It runs the hook save-place-after-find-file-hook.

This function has :after advice: org-bookmark-jump-unhide.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/saveplace.el.gz
(defun save-place-find-file-hook ()
  "Function added to `find-file-hook' by `save-place-mode'.
It runs the hook `save-place-after-find-file-hook'."
  (or save-place-loaded (save-place-load-alist-from-file))
  (let ((cell (and (stringp buffer-file-name)
                   (assoc (if save-place-abbreviate-file-names
                              (abbreviate-file-name buffer-file-name)
                            buffer-file-name)
                          save-place-alist))))
    (if cell
	(progn
	  (or revert-buffer-in-progress
	      (and (integerp (cdr cell))
		   (goto-char (cdr cell))))
          ;; and make sure it will be saved again for later
          (setq save-place-mode t))))
  (run-hooks 'save-place-after-find-file-hook))