From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14567: Scrolling of large images Date: Sun, 16 Jun 2013 19:24:22 +0300 Message-ID: <83li6at45l.fsf@gnu.org> References: <83ppvzur6i.fsf@gnu.org> <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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1371399910 12284 80.91.229.3 (16 Jun 2013 16:25:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Jun 2013 16:25:10 +0000 (UTC) Cc: 14567@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 18:25:09 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 1UoFlN-0003SB-7n for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2013 18:25:09 +0200 Original-Received: from localhost ([::1]:55957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoFlM-0001A4-Nz for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2013 12:25:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoFlI-00018h-CM for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 12:25:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoFlG-00086D-TB for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 12:25:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoFlG-00085h-Pp for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 12:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UoFlF-0006aB-MX for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 12:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2013 16:25:01 +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.137139987225265 (code B ref 14567); Sun, 16 Jun 2013 16:25:01 +0000 Original-Received: (at 14567) by debbugs.gnu.org; 16 Jun 2013 16:24:32 +0000 Original-Received: from localhost ([127.0.0.1]:48635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoFkm-0006ZQ-1r for submit@debbugs.gnu.org; Sun, 16 Jun 2013 12:24:32 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:38042) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoFkj-0006Z8-92 for 14567@debbugs.gnu.org; Sun, 16 Jun 2013 12:24:30 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MOH00L00URPEP00@a-mtaout23.012.net.il> for 14567@debbugs.gnu.org; Sun, 16 Jun 2013 19:24:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOH00LBWUWM8FA0@a-mtaout23.012.net.il>; Sun, 16 Jun 2013 19:24:23 +0300 (IDT) In-reply-to: <87txky60j2.fsf@gmail.com> X-012-Sender: halo1@inter.net.il 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:75216 Archived-At: > 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. The idea was to use something similar in other modes, when an image is present in the window. Wasn't that what you wanted? If so, why are you suggesting changes to image-mode?