From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Marschke Newsgroups: gmane.emacs.devel Subject: doc-view.el -- switching pages without having to scroll up again Date: Fri, 4 Feb 2011 04:55:51 +0100 Message-ID: <20110204035551.GB21916@andres.andreas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1296791780 3368 80.91.229.12 (4 Feb 2011 03:56:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Feb 2011 03:56:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 04 04:56:17 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PlCmN-0001Va-R7 for ged-emacs-devel@m.gmane.org; Fri, 04 Feb 2011 04:56:16 +0100 Original-Received: from localhost ([127.0.0.1]:33704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlCmM-0001vU-Rz for ged-emacs-devel@m.gmane.org; Thu, 03 Feb 2011 22:56:14 -0500 Original-Received: from [140.186.70.92] (port=42054 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlCmH-0001uQ-Hf for emacs-devel@gnu.org; Thu, 03 Feb 2011 22:56:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PlCmG-0004uT-Gm for emacs-devel@gnu.org; Thu, 03 Feb 2011 22:56:09 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:43128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlCmG-0004u4-7E for emacs-devel@gnu.org; Thu, 03 Feb 2011 22:56:08 -0500 Original-Received: by fxm12 with SMTP id 12so1985027fxm.0 for ; Thu, 03 Feb 2011 19:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=wlnDwsAjm7Cl4S/xCdbro/cA/qarM4nof2AZcTNxjdg=; b=ZMbG7nw2yxcypxvFJxCj4q8Z/LAJ7+d8a/lN33Yobm81emIA1sIqHvFxbN+HyGiimU /zxGRlriA0vvytAcAaoREgXtmP6yH+z9MG/B/dvv4xFstiCg2SJhZ9HJ7YFtMcv/rJq1 94Jb69hZB7K9GFYfYD64KW/Ye7BHPe5elGNk4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=IyVLB/qvGijeM+g4ywEWClRWmeiFIp7kuZ7TyOh2VWx6rp6Z91Iqkq/PaWYK8HAnC6 oC+AV64J7l7Phb85mwEgKF/1RAjck/1UMbsAV+8gq1TGQ9Rd0SOIwpBIV5I0KeW4UcFZ y+b/6dMnQmqer2FxfVfSio9rcoWrzZtGBwOd8= Original-Received: by 10.223.83.8 with SMTP id d8mr10881818fal.94.1296791767204; Thu, 03 Feb 2011 19:56:07 -0800 (PST) Original-Received: from andres.andreas (p5B2A7C1E.dip.t-dialin.net [91.42.124.30]) by mx.google.com with ESMTPS id r24sm58926fax.27.2011.02.03.19.56.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 19:56:06 -0800 (PST) Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135552 Archived-At: 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