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).
This commit is contained in:
Tassilo Horn 2024-07-25 08:49:10 +02:00
parent 42cdfe7f60
commit c6937ef88b

View file

@ -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))