From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#14567: Scrolling of large images Date: Mon, 17 Jun 2013 06:57:21 +0200 Organization: Emacs Helm Message-ID: <87bo755o7i.fsf@gmail.com> References: <83obbjuov4.fsf@gnu.org> <83vc5osn0r.fsf@gnu.org> <83obbgsg33.fsf@gnu.org> <83k3m4sar0.fsf@gnu.org> <83ehccromw.fsf@gnu.org> <87bo7cpfpk.fsf@engster.org> <83li6bvl2i.fsf@gnu.org> <87bo77d9vt.fsf@engster.org> <83d2rnvhkw.fsf@gnu.org> <877ghvd6tq.fsf@engster.org> <87mwqrpqym.fsf@gmail.com> <83a9mrvcmi.fsf@gnu.org> <837ghvv94e.fsf@gnu.org> <87ip1epqkj.fsf@gmail.com> <87txky60j2.fsf@gmail.com> <83li6at45l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371445332 19200 80.91.229.3 (17 Jun 2013 05:02:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2013 05:02:12 +0000 (UTC) Cc: 14567@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 17 07:02:12 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1UoRZx-0003nX-6B for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jun 2013 07:02:09 +0200 Original-Received: from localhost ([::1]:53356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoRZw-0000p4-KP for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jun 2013 01:02:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoRZs-0000oz-Kz for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 01:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoRZr-0005Sx-I5 for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 01:02:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoRZr-0005Ss-EO for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 01:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UoRZq-0008FD-RW for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 01:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2013 05:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14567 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14567-submit@debbugs.gnu.org id=B14567.137144529931647 (code B ref 14567); Mon, 17 Jun 2013 05:02:02 +0000 Original-Received: (at 14567) by debbugs.gnu.org; 17 Jun 2013 05:01:39 +0000 Original-Received: from localhost ([127.0.0.1]:49528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoRZS-0008EM-DY for submit@debbugs.gnu.org; Mon, 17 Jun 2013 01:01:38 -0400 Original-Received: from mail-ea0-f178.google.com ([209.85.215.178]:65333) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoRZP-0008E3-Gy for 14567@debbugs.gnu.org; Mon, 17 Jun 2013 01:01:36 -0400 Original-Received: by mail-ea0-f178.google.com with SMTP id l15so1546769eak.9 for <14567@debbugs.gnu.org>; Sun, 16 Jun 2013 22:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=R5djkfsw/XB/7AIm6b5PvCXzgxlLaQkzgG4E7fCSyR0=; b=HhxCSbeMiK4e/r7jndbeGnrBFtA8URyPddH/nm3bXrJ0swBSlXVELiN7jGPpY8inFJ 15ZAR2pxLFAfXegBrmM0pfbplWcl1PC0m3hb9RNXMKgxClgog2ZtpQpw4FmyTk4u99wl 1azYaX2OvWuFmfhXc/4hscvU3AYMiyWLS+Nn5A2PUyAo9SRW4dsfPob3UDCq1lxSQT+S wDOLSajJnfmK4K0A8+8CemB5sJQm9o7BBzrPHrKicLvbSXGjYJ2s55EcPvQ1ZF9vOpa0 Gkqe3iAdFtaUVC8oK6PP58vIHCcmKkfXgNz/CYk/ZL6mhZFHwGzjZW3GbJYQNa82UYj8 JHGw== X-Received: by 10.14.126.72 with SMTP id a48mr14528727eei.34.1371445289291; Sun, 16 Jun 2013 22:01:29 -0700 (PDT) Original-Received: from dell-14z ([37.161.208.156]) by mx.google.com with ESMTPSA id o5sm1869836eef.5.2013.06.16.22.01.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 16 Jun 2013 22:01:28 -0700 (PDT) In-Reply-To: <83li6at45l.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 Jun 2013 19:24:22 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75236 Archived-At: Eli Zaretskii writes: >> From: Thierry Volpiatto >> Date: Sun, 16 Jun 2013 08:18:57 +0200 >> >> Thierry Volpiatto writes: >> >> > Eli Zaretskii writes: >> > >> >>> Date: Sat, 15 Jun 2013 14:26:13 +0300 >> >>> From: Eli Zaretskii >> >>> Cc: 14567@debbugs.gnu.org >> >>> >> >>> > From: Thierry Volpiatto >> >>> > Date: Sat, 15 Jun 2013 13:13:05 +0200 >> >>> > >> >>> > however it would be great to be able to scroll horizontally too. >> >>> >> >>> That's a much larger project, since we lack infrastructure to scroll >> >>> horizontally by pixels. >> >> >> >> Actually, I see that I was wrong: set-window-hscroll can do the job. >> >> The only problem is to get C-f/C-b and / keys invoke that >> >> function when appropriate. Patches are welcome. >> > >> > I don't understand how to use this, it is actually setting the number of >> > column where to start scrolling, and it seems an image have only one >> > column? >> > >> > Though only setting `auto-hscroll-mode' to nil let move with C-f/b and >> > left/right as expected, may be this value should be let-bounded when >> > image-mode is detected? >> >> I saw auto-hscroll-mode was already used, but have no effect, when >> moving it to image-mode and make it buffer-local, it is working. >> However, navigation in image looks a little slower than scrolling >> vertically, but maybe I am wrong. >> >> >> diff --git a/lisp/image-mode.el b/lisp/image-mode.el >> index 30dfd04..fdede81 100644 >> --- a/lisp/image-mode.el >> +++ b/lisp/image-mode.el > > I'm confused: didn't you want C-f/C-b and the arrows to scroll images > in modes other than image-mode? I mentioned image-mode only as > example of usage of set-window-hscroll, since image-mode already binds > the movement keys to a command that scrolls the image horizontally. Which command? I see that forward-char is remapped to image-forward-hscroll and same for backward-char, but it is not working because auto-hscroll-mode is not set correctly. But may be I missed something? > The idea was to use something similar in other modes, when an image is > present in the window. > > Wasn't that what you wanted? Yes also. > If so, why are you suggesting changes to image-mode? To allow navigation with C-f/b and left/right which is not working actually. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997