Function: window-point-context-use-default-function
window-point-context-use-default-function is a byte-compiled function
defined in window.el.gz.
Signature
(window-point-context-use-default-function W CONTEXT)
Documentation
Restore context of file buffers by the front and rear strings.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-point-context-use-default-function (w context)
"Restore context of file buffers by the front and rear strings."
(with-current-buffer (window-buffer w)
(let ((point (window-point w)))
(save-excursion
(goto-char point)
(when-let ((f (alist-get 'front-context-string context))
((search-forward f (point-max) t)))
(goto-char (match-beginning 0))
(when-let ((r (alist-get 'rear-context-string context))
((search-backward r (point-min) t)))
(goto-char (match-end 0))
(setq point (point)))))
(set-window-point w point))))