From: Andreas Marschke <xxtjaxx@googlemail.com>
To: emacs-devel@gnu.org
Subject: doc-view.el -- switching pages without having to scroll up again
Date: Fri, 4 Feb 2011 04:55:51 +0100 [thread overview]
Message-ID: <20110204035551.GB21916@andres.andreas> (raw)
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
next reply other threads:[~2011-02-04 3:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-04 3:55 Andreas Marschke [this message]
2011-02-04 8:15 ` doc-view.el -- switching pages without having to scroll up again Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110204035551.GB21916@andres.andreas \
--to=xxtjaxx@googlemail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).