From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vaidheeswaran Newsgroups: gmane.emacs.devel Subject: Re: Page navigation in doc-view.el Date: Thu, 15 Jan 2015 17:13:43 +0530 Message-ID: References: <87bnm05lc0.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421322306 27162 80.91.229.3 (15 Jan 2015 11:45:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 11:45:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 15 12:45:00 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YBirC-0006Pc-EV for ged-emacs-devel@m.gmane.org; Thu, 15 Jan 2015 12:44:58 +0100 Original-Received: from localhost ([::1]:50220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBirB-0007P3-U0 for ged-emacs-devel@m.gmane.org; Thu, 15 Jan 2015 06:44:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBiqq-0007Om-SV for emacs-devel@gnu.org; Thu, 15 Jan 2015 06:44:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBiqn-0007WW-Oj for emacs-devel@gnu.org; Thu, 15 Jan 2015 06:44:36 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:43046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBiqn-0007WP-HB for emacs-devel@gnu.org; Thu, 15 Jan 2015 06:44:33 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YBiqk-0006AN-KW for emacs-devel@gnu.org; Thu, 15 Jan 2015 12:44:30 +0100 Original-Received: from 106.206.180.165 ([106.206.180.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Jan 2015 12:44:30 +0100 Original-Received: from vaidheeswaran.chinnaraju by 106.206.180.165 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Jan 2015 12:44:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 106.206.180.165 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20121216 Icedove/3.0.11 In-Reply-To: <87bnm05lc0.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181291 Archived-At: 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!)