I am using a slightly modified version of doc-view
mode and would like to maintain focus in a different window, while hovering with the mouse over the doc-view
window and scroll the image page-up or page-down -- without actually selecting the window. When not selecting the window and attempting to scroll with the mouse, I get the following error message.
In case it makes a difference, my operating system is OSX 10.6.8 (Snow Leopard).
Debugger entered--Lisp error: (wrong-type-argument listp t)
image-mode-winprops(nil)
image-mode-window-get(page nil)
(+ (image-mode-window-get (quote page) nil) (or arg 1))
(dv-goto-page (+ (image-mode-window-get (quote page) nil) (or arg 1)))
dv-next-page(1)
funcall-interactively(dv-next-page 1)
call-interactively(dv-next-page nil nil)
command-execute(dv-next-page)
EDIT (November 28, 2014): The following is the debugger readout for the stock version of doc-view-mode
using the following mouse wheel assignments that I added:
Key assignments:
(define-key doc-view-mode-map (kbd "<wheel-down>") 'doc-view-next-page)
(define-key doc-view-mode-map (kbd "<wheel-up>") 'doc-view-previous-page)
Emacs version: GNU Emacs 25.0.50.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 10.6.8 (Build 10K549)) of 2014-10-01 on MP.local
Debugger readout:
Debugger entered--Lisp error: (wrong-type-argument listp t)
image-mode-winprops(nil)
image-mode-window-get(page nil)
doc-view-next-page(1)
funcall-interactively(doc-view-next-page 1)
call-interactively(doc-view-next-page nil nil)
command-execute(doc-view-next-page)
doc-view
? If not, post your modifications. What version of Emacs are you running?nil
?wheel-down
andwheel-up
fordoc-view-next-page
anddoc-view-previous-page
because I wanted to scroll one page at a time, without any partial page movement before scrolling to the next page. Setting the variabledoc-view-continuous
tot
lets me eventually scroll to the next page, but there is some movement of the current page and additional scrolling that is needed to finally turn the page. It would be nice to achieve the same movement asdoc-view-next-page
anddoc-view-previous-page
with the mouse when focus is in another window.