[Top][All Lists]

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

doc-view.el -- switching pages without having to scroll up again

From: Andreas Marschke
Subject: doc-view.el -- switching pages without having to scroll up again
Date: Fri, 4 Feb 2011 04:55:51 +0100
User-agent: Mutt/1.5.20 (2009-06-14)


For some time I used doc-view for reading PDFs and reading
documentation (like the emacs-intro.pdf). But when I have the document
on a reasonable, readable zoom level and scroll through page by page
reading it I have this workflow at the moment:
 - read page 
 - scroll down a few times to get the last lines, too
 - press PgDown to get to the new page
 - scroll up to the top of the page to keep going on reading it

The last part (scrolling up again) is an annoyance when enjoying an
otherwise good read. I made a IMHO pathetic patch like this: 
--- doc-view.el 2011-02-04 04:42:51.000000000 +0100
+++ doc-view-top-fix.el 2010-05-20 13:06:23.000000000 +0200
@@ -442,7 +442,8 @@
                                       (with-selected-window win
                                         (doc-view-goto-page page))))))))
     (overlay-put (doc-view-current-overlay)
-                 'help-echo (doc-view-current-info))))
+                 'help-echo (doc-view-current-info)))
+  (image-bob))
 (defun doc-view-next-page (&optional arg)
   "Browse ARG pages forward."
I know this is evil especially with the search and all but I would
love if anyone would recommend a better way to fix this.


Andreas Marschke

reply via email to

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