From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Scrolling in doc-view Date: Wed, 17 Oct 2007 19:49:44 -0400 Message-ID: <87myuhuwrr.fsf_-_@stupidchicken.com> References: <87bqbhkhc6.fsf@baldur.tsdh.de> <58152.128.165.0.81.1191330286.squirrel@webmail.lanl.gov> <878x6ljwb4.fsf@baldur.tsdh.de> <87fy0r2u3z.fsf@baldur.tsdh.de> <87wsu1sear.fsf@baldur.tsdh.de> <878x6gqqfa.fsf@baldur.tsdh.de> <87abqt2x52.fsf@jurta.org> <87ejg47z87.fsf@baldur.tsdh.de> <87abqkyu1p.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192665049 10199 80.91.229.12 (17 Oct 2007 23:50:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2007 23:50:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 18 01:50:45 2007 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.50) id 1IiIen-0000KW-2B for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2007 01:50:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiIef-0002ot-Nv for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2007 19:50:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiIeb-0002kj-KB for emacs-devel@gnu.org; Wed, 17 Oct 2007 19:50:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiIeZ-0002iE-VH for emacs-devel@gnu.org; Wed, 17 Oct 2007 19:50:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiIeZ-0002hw-Nf for emacs-devel@gnu.org; Wed, 17 Oct 2007 19:50:19 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiIeZ-0001kf-F7 for emacs-devel@gnu.org; Wed, 17 Oct 2007 19:50:19 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id C30F64E3A1; Wed, 17 Oct 2007 19:49:44 -0400 (EDT) In-Reply-To: <87abqkyu1p.fsf@baldur.tsdh.de> (Tassilo Horn's message of "Mon\, 15 Oct 2007 22\:58\:10 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) 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:81112 Archived-At: The newly-installed doc-view package doesn't properly handle images that are wider or taller than the Emacs window. The left/right keys don't scroll the image horizontally, and scrolling vertically is cumbersome (because once you reach the bottom of the image, it disappears without warning, whereupon trying to scroll back up jumps back to the top of the image). Image-mode used to have the same problems, but I recently enhanced it so that large images can be scrolled vertically and horizontally. It would be good to avoid re-introducing these annoyances with doc-view mode. Could you take a look at the relevant functions in image-mode.el (image-forward-hscroll, image-backward-hscroll, image-previous-line, image-next-line, etc.) and try to use them in doc-view mode? Thanks.