emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Page navigation in doc-view.el


From: Vaidheeswaran
Subject: Re: Page navigation in doc-view.el
Date: Thu, 15 Jan 2015 17:13:43 +0530
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20121216 Icedove/3.0.11

On Thursday 15 January 2015 05:04 PM, Alexis wrote:
This has been an issue for me also; i've addressed it via the following
advice:

     (defadvice doc-view-next-page (after doc-view-next-page-move-to-top 
activate)
       "After moving to next page, move to top of page."
       (image-set-window-vscroll 0))

     (defadvice doc-view-previous-page (after 
doc-view-previous-page-move-to-bottom activate)
       "After moving to previous page, move to bottom of page."
       (image-set-window-vscroll (+ 2 (/ (window-height) 2))))


It took some time to identify `image-bob' and `image-eob'. May be we can have a prefix arg. to the page navigation command: without prefix it will leave me at bob but with a prefix it will retain the "relative position".

I recommend that the current behaviour be fixed. (It should be an easy fix!)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]