1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-25 07:40:40 -07:00

Fix previous page and next page tooltips in doc-view.el

* lisp/doc-view.el (doc-view-tool-bar-map): Fix toolbar items to go to
next and previous pages in a document.  (Bug#68018)
This commit is contained in:
Daniel Martín 2023-12-25 11:43:39 +01:00 committed by Eli Zaretskii
parent bb0a5eb41f
commit 35f8629a3f

View file

@ -698,12 +698,12 @@ Typically \"page-%s.png\".")
(tool-bar-local-item-from-menu 'doc-view-previous-page "last-page"
map doc-view-mode-map :vert-only t
:enable '(> (doc-view-current-page) 1)
:help "Move to the next page.")
:help "Move to the previous page.")
(tool-bar-local-item-from-menu 'doc-view-next-page "next-page"
map doc-view-mode-map :vert-only t
:enable '(< (doc-view-current-page)
(doc-view-last-page-number))
:help "Move to the last page.")
:help "Move to the next page.")
map)
"Like the default `tool-bar-map', but with additions for DocView.")