* Re: Scrolling in image-mode
@ 2008-01-06 10:11 Angelo Graziosi
2008-01-06 18:43 ` Vinicius Jose Latorre
0 siblings, 1 reply; 8+ messages in thread
From: Angelo Graziosi @ 2008-01-06 10:11 UTC (permalink / raw)
To: emacs-devel
Tassilo Horn wrote:
> 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
Now I have just bootstrapped current Emacs 23.0.50 CVS on GNU/Linux
Kubuntu 7.10.
I have also used Emacs 22.1 (built with GTK) that is installed on that
version of GNU/Linux.
In all the above cases the scrolling with the four arrow keys does not
work!
As a test imgage I have used this:
http://www.webalice.it/angelo.graziosi/rosa-1.jpg
Cheers,
Angelo.
---
http://www.webalice.it/angelo.graziosi
Facesti come quei che va di notte,
che porta il lume dietro e se' non giova,
ma dopo se' fa le persone dotte.
---
DANTE, Purgatorio, xxii 67-69
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Scrolling in image-mode
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
0 siblings, 1 reply; 8+ messages in thread
From: Vinicius Jose Latorre @ 2008-01-06 18:43 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel
Angelo Graziosi wrote:
> Tassilo Horn wrote:
>
> > 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
>
> Now I have just bootstrapped current Emacs 23.0.50 CVS on GNU/Linux
> Kubuntu 7.10.
>
> I have also used Emacs 22.1 (built with GTK) that is installed on that
> version of GNU/Linux.
>
>
> In all the above cases the scrolling with the four arrow keys does not
> work!
>
> As a test imgage I have used this:
>
> http://www.webalice.it/angelo.graziosi/rosa-1.jpg
I've just downloaded rosa-1.jpg.
Using "emacs -Q rosa-1.jpg", the four arrow keys work for me.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Scrolling in image-mode
2008-01-06 18:43 ` Vinicius Jose Latorre
@ 2008-01-06 22:22 ` Angelo Graziosi
2008-01-07 8:36 ` Tassilo Horn
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Angelo Graziosi @ 2008-01-06 22:22 UTC (permalink / raw)
To: Vinicius Jose Latorre; +Cc: emacs-devel
Vinicius Jose Latorre wrote:
> Angelo Graziosi wrote:
>> Tassilo Horn wrote:
>>
>> > 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
>>
>> Now I have just bootstrapped current Emacs 23.0.50 CVS on GNU/Linux
>> Kubuntu 7.10.
>>
>> I have also used Emacs 22.1 (built with GTK) that is installed on that
>> version of GNU/Linux.
>>
>>
>> In all the above cases the scrolling with the four arrow keys does not
>> work!
>>
>> As a test imgage I have used this:
>>
>> http://www.webalice.it/angelo.graziosi/rosa-1.jpg
>
>
> I've just downloaded rosa-1.jpg.
>
> Using "emacs -Q rosa-1.jpg", the four arrow keys work for me.
>
Well, it seems that the cause of the problem is this in my .emacs file:
(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?
Is it a bug?
On the list, there is a thread regarding pc-select.el
(http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg00490.html).
Could it interfere, in some manner, with our discussion?
Cheers,
Angelo.
---
http://www.webalice.it/angelo.graziosi
Tu proverai si' come sa di sale
lo pane altrui, e come e' duro calle
lo scendere e 'l salir per l'altrui scale.
---
DANTE, Paradiso, xvii 58-60
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Scrolling in image-mode
2008-01-06 22:22 ` Angelo Graziosi
@ 2008-01-07 8:36 ` Tassilo Horn
2008-01-07 14:11 ` Kim F. Storm
2008-01-07 17:21 ` Stefan Monnier
2 siblings, 0 replies; 8+ messages in thread
From: Tassilo Horn @ 2008-01-07 8:36 UTC (permalink / raw)
To: emacs-devel
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Scrolling in image-mode
2008-01-06 22:22 ` Angelo Graziosi
2008-01-07 8:36 ` Tassilo Horn
@ 2008-01-07 14:11 ` Kim F. Storm
2008-01-07 16:49 ` Angelo Graziosi
2008-01-07 17:21 ` Stefan Monnier
2 siblings, 1 reply; 8+ messages in thread
From: Kim F. Storm @ 2008-01-07 14:11 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel
Angelo Graziosi <angelo.graziosi@alice.it> writes:
> So the questions now are: Why does enabling pc-selection-mode cause
> the arrow keys do not work in JPEG mode?
>
Because it rebinds those keys.
You may try cua-mode instead.
It provides the same (and more) features as pc-selection-mode
without rebinding the arrow keys.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Scrolling in image-mode
2008-01-07 14:11 ` Kim F. Storm
@ 2008-01-07 16:49 ` Angelo Graziosi
0 siblings, 0 replies; 8+ messages in thread
From: Angelo Graziosi @ 2008-01-07 16:49 UTC (permalink / raw)
To: emacs-devel
Kim F. Storm wrote:
>
> You may try cua-mode instead.
>
> It provides the same (and more) features as pc-selection-mode
> without rebinding the arrow keys.
>
Tassilo Horn wrote:
> 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)
> ...
> ))
Many thanks for all these suggestions.
I have commented out the pc-selection-mode in .emacs (perhaps it was
there because adopted with a previous version of Emacs).
A little suggestion/request: When cua-mode is enabled, it would be nice
to see some items in Edit menu redefined,
Cut C-x instead of Cut (<cut>)
etc...
Thanks a lot,
Angelo.
---
http://www.webalice.it/angelo.graziosi
Facesti come quei che va di notte,
che porta il lume dietro e se' non giova,
ma dopo se' fa le persone dotte.
---
DANTE, Purgatorio, xxii 67-69
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Scrolling in image-mode
2008-01-06 22:22 ` Angelo Graziosi
2008-01-07 8:36 ` Tassilo Horn
2008-01-07 14:11 ` Kim F. Storm
@ 2008-01-07 17:21 ` Stefan Monnier
2 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2008-01-07 17:21 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel
> Well, it seems that the cause of the problem is this in my .emacs file:
> (pc-selection-mode t)
I guess image-mode should explicitly bind left/right/up/down rather than
limit itself to remapping commands like forward-char, ...
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Scrolling in image-mode
@ 2008-01-06 1:47 Angelo Graziosi
0 siblings, 0 replies; 8+ messages in thread
From: Angelo Graziosi @ 2008-01-06 1:47 UTC (permalink / raw)
To: emacs-devel
Tassilo Horn wrote:
> I think the image-scrolling is pretty new, so it depends on the emacs
> version you use.
Emacs 23.0.50 from CVS less than 3 hours ago and just bootstrapped (on
Cygwin)!
../configure --prefix=${prefix_dir} \
--with-x-toolkit=lucid
Cheers,
Angelo.
---
http://www.webalice.it/angelo.graziosi
Facesti come quei che va di notte,
che porta il lume dietro e se' non giova,
ma dopo se' fa le persone dotte.
---
DANTE, Purgatorio, xxii 67-69
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-01-07 17:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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.