Variable: doc-view-tool-bar-map
doc-view-tool-bar-map is a variable defined in doc-view.el.gz.
Value
<Next page> <<> <doc-view-last-page-number> nil
<dired> <menu-bar-non-minibuffer-window-p> nil
<kill-buffer> <kill-this-buffer-enabled-p> nil
<new-file> <menu-bar-non-minibuffer-window-p> nil
<open-file> <menu-bar-non-minibuffer-window-p> nil
<separator-1> nil
<separator-2> nil
Documentation
Like the default tool-bar-map, but with additions for DocView.
Source Code
;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defvar doc-view-tool-bar-map
(let ((map (make-sparse-keymap)))
;; Most of these items are the same as in the default tool bar
;; map, but with extraneous items removed, and with extra search
;; and navigation items.
(tool-bar-local-item-from-menu 'find-file "new" map
nil :label "New File"
:vert-only t)
(tool-bar-local-item-from-menu 'menu-find-file-existing "open" map
nil :label "Open" :vert-only t)
(tool-bar-local-item-from-menu 'dired "diropen" map nil :vert-only t)
(tool-bar-local-item-from-menu 'kill-this-buffer "close" map nil
:vert-only t)
(define-key-after map [separator-1] menu-bar-separator)
(tool-bar-local-item-from-menu 'doc-view-new-search "search"
map doc-view-mode-map :vert-only t
:help "Start a new search query.")
(tool-bar-local-item-from-menu 'doc-view-search-backward "left-arrow"
map doc-view-mode-map
:vert-only t
:enable 'doc-view--current-search-matches
:help "Move to the last search result.")
(tool-bar-local-item-from-menu 'doc-view-search "right-arrow"
map doc-view-mode-map :vert-only t
:enable 'doc-view--current-search-matches
:help "Move to the next search result.")
(define-key-after map [separator-2] menu-bar-separator)
(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 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 next page.")
map)
"Like the default `tool-bar-map', but with additions for DocView.")