From d0d6b3fdc7d68c977b9d393d04ed04a93bf3aad9 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Thu, 25 Jul 2024 08:49:10 +0200 Subject: [PATCH] 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) --- lisp/doc-view.el | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.39.2