all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: Scrolling in image-mode
Date: Mon, 07 Jan 2008 09:36:57 +0100	[thread overview]
Message-ID: <87myrihw0m.fsf@member.fsf.org> (raw)
In-Reply-To: <478154A7.5080806@alice.it> (Angelo Graziosi's message of "Sun, 06 Jan 2008 23:22:31 +0100")

Angelo Graziosi <angelo.graziosi@alice.it> 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 "<right>") 'image-forward-hscroll)
            ...
            ))

Bye,
Tassilo

  reply	other threads:[~2008-01-07  8:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-06 10:11 Scrolling in image-mode Angelo Graziosi
2008-01-06 18:43 ` Vinicius Jose Latorre
2008-01-06 22:22   ` Angelo Graziosi
2008-01-07  8:36     ` Tassilo Horn [this message]
2008-01-07 14:11     ` Kim F. Storm
2008-01-07 16:49       ` Angelo Graziosi
2008-01-07 17:21     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2008-01-06  1:47 Angelo Graziosi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87myrihw0m.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.