From: Alexis <flexibeast@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Page navigation in doc-view.el
Date: Thu, 15 Jan 2015 22:34:23 +1100 [thread overview]
Message-ID: <87bnm05lc0.fsf@gmail.com> (raw)
In-Reply-To: <m987tu$57u$1@ger.gmane.org>
Vaidheeswaran writes:
> The 'p' and 'n' commands (also bound to C-x [ and and C-x ])navigate
> to prev and next page resply. BUT it leaves me not in the beginning
> or end of the page but somewhere in the "middle" of the page. (This
> behaviour is very useful in some circumstances. For example, in
> inspecting footnotes.)
>
> That said, I would have expected to the canonical behaviour of the
> above commands to leave me at the beginning of page or end of page.
> (i.e., above commands followed up with '<' and '>')
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))))
Alexis.
next prev parent reply other threads:[~2015-01-15 11:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 11:22 Page navigation in doc-view.el Vaidheeswaran
2015-01-15 11:34 ` Alexis [this message]
2015-01-15 11:43 ` Vaidheeswaran
2015-01-15 14:54 ` Stefan Monnier
2015-01-15 15:14 ` Vaidheeswaran C
2015-01-15 16:05 ` Stefan Monnier
2015-01-18 8:09 ` Vaidheeswaran
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnm05lc0.fsf@gmail.com \
--to=flexibeast@gmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.