From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Scrolling in image-mode Date: Mon, 07 Jan 2008 09:36:57 +0100 Message-ID: <87myrihw0m.fsf@member.fsf.org> References: <4780A96A.4080700@alice.it> <4781216B.1060001@ig.com.br> <478154A7.5080806@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199695028 4075 80.91.229.12 (7 Jan 2008 08:37:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 08:37:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 07 09:37:29 2008 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 1JBnU9-0006E8-4N for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 09:37:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBnTm-0001Bs-66 for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 03:37:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBnTj-0001BI-2s for emacs-devel@gnu.org; Mon, 07 Jan 2008 03:37:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBnTh-00018A-B5 for emacs-devel@gnu.org; Mon, 07 Jan 2008 03:37:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBnTh-00017z-8B for emacs-devel@gnu.org; Mon, 07 Jan 2008 03:37:01 -0500 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBnTg-00080O-Vp for emacs-devel@gnu.org; Mon, 07 Jan 2008 03:37:01 -0500 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 9DDC182E13 for ; Mon, 7 Jan 2008 03:37:00 -0500 (EST) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Mon, 07 Jan 2008 03:37:00 -0500 X-Sasl-enc: 3AZfZsFufXR1o+prEJY+HneT+o8L3hvwUX0q91Et1lVd 1199695020 Original-Received: from baldur (dslb-084-063-053-065.pools.arcor-ip.net [84.63.53.65]) by mail.messagingengine.com (Postfix) with ESMTP id E1D0B25CDC for ; Mon, 7 Jan 2008 03:36:59 -0500 (EST) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <478154A7.5080806@alice.it> (Angelo Graziosi's message of "Sun, 06 Jan 2008 23:22:31 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:86447 Archived-At: Angelo Graziosi writes: >>> > I think the image-scrolling is pretty new, so it depends on the >>> > emacs version you use. >>> >>> >>> I wrote: >>> >>> > Emacs 23.0.50 from CVS less than 3 hours ago and just bootstrapped >>> > (on Cygwin)! >>> > >>> > ../configure --prefix=${prefix_dir} \ >>> > --with-x-toolkit=lucid Ups, sorry. :) > (pc-selection-mode t) > > So the questions now are: Why does enabling pc-selection-mode cause > the arrow keys do not work in JPEG mode? ,----[ C-h f pc-selection-mode RET ] | pc-selection-mode is an interactive autoloaded Lisp function in `pc-select'. | (pc-selection-mode &optional ARG) [...] | The arrow keys (and others) are bound to new functions which modify | the status of the mark. [...] | [back] `---- So with pc-selection-mode -> is not forward-char but forward-char-nomark, and image mode remaps forward-char to image-forward-hscroll but does not do the same for forward-char-nomark. If pc-selection-mode makes the original keys accessible somehow, then use those for image-scrolling . (C-h w forward-char RET, or in image-mode C-h w image-forward-hscroll RET) > Is it a bug? Not really. But you can redefine the image-mode bindings in image-mode-hook like this: (add-hook 'image-mode-hook (lambda () (local-set-key (kbd "") 'image-forward-hscroll) ... )) Bye, Tassilo