From: Tassilo Horn Date: Thu, 25 Jul 2024 06:49:10 +0000 (+0200) Subject: Fix jumping to page in DocView's text contents (bug#72275) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0d6b3fdc7d68c977b9d393d04ed04a93bf3aad9;p=emacs.git Fix jumping to page in DocView's text contents (bug#72275) * lisp/doc-view.el (doc-view-open-text): Set page-delimiter to the form feed character in the text contents buffer (bug#72275). (cherry picked from commit c6937ef88b19d46342cefc1493a70f21a8993e08) --- diff --git a/lisp/doc-view.el b/lisp/doc-view.el index fbe25d956fe..ce505b19969 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -1779,6 +1779,8 @@ For now these keys are useful: (insert-file-contents txt) (doc-view--text-view-mode) (setq-local doc-view--buffer-file-name dv-bfn) + ;; Pages are separated by form feed characters. + (setq-local page-delimiter " ") (set-buffer-modified-p nil) (doc-view-minor-mode) (goto-char (point-min))