unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* doc-view.el -- switching pages without having to scroll up again
@ 2011-02-04  3:55 Andreas Marschke
  2011-02-04  8:15 ` Tassilo Horn
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Marschke @ 2011-02-04  3:55 UTC (permalink / raw)
  To: emacs-devel

Hi! 

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.

-- 
Cheers,

Andreas Marschke



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-04  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-04  3:55 doc-view.el -- switching pages without having to scroll up again Andreas Marschke
2011-02-04  8:15 ` Tassilo Horn

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).