[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling in image-mode

From: Tassilo Horn
Subject: Re: Scrolling in image-mode
Date: Mon, 07 Jan 2008 09:36:57 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

Angelo Graziosi <address@hidden> 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

(add-hook 'image-mode-hook
          (lambda ()
            (local-set-key (kbd "<right>") 'image-forward-hscroll)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]