all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bind C-å o C-e
@ 2006-08-16  9:17 A. Drosos
  2006-08-16 10:49 ` Peter Dyballa
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: A. Drosos @ 2006-08-16  9:17 UTC (permalink / raw)


Hi

I'm using emacs 22.0.50.1 build from source on a Linux from Scratch box. I'm
also editing text documents in the greek language. On the console, I can
switch between greek/english with LeftAlt-Shift and still be able to use the 
regular C-e and similar sequences to move around my document. This does not
happen in X-windows. The message I get for C-å (for example) and similar keys, 
is that they are undefined.

I tried to google for an answer to this problem and tried a great variety of
possibilities in my .emacs file to bind C-å back to C-e, with no success.
I'm sure there are many users who have come up with something similar in
their own native languages. Being a newbie with emacs I may not even be
using the correct search words! I would greatly appreciate pointers in the
right direction.

TIA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bind C-å o C-e
  2006-08-16  9:17 bind C-å o C-e A. Drosos
@ 2006-08-16 10:49 ` Peter Dyballa
       [not found] ` <mailman.5225.1155725382.9609.help-gnu-emacs@gnu.org>
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2006-08-16 10:49 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 16.08.2006 um 11:17 schrieb A. Drosos:

> I tried to google for an answer to this problem and tried a great  
> variety of
> possibilities in my .emacs file to bind C-å back to C-e, with no  
> success.

Have you also tried to bind C-å to the same command that C-e is  
performing?


You could bind global-set-key to some key-binding. Interactively you  
can try to bind C-å to move-end-of-line. Then press: C-x ESC ESC C-a  
C-k C-g (repeat-complex-command, move-beginning-of-line, kill-line,  
keyboard-quit). After that position the cursor at some proper place  
in .emacs and type C-y C-x C-s (yank, save-buffer).

--
Greetings

   Pete

In a world without walls and fences, who needs gates and windows?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bind C-å o C-e
       [not found] ` <mailman.5225.1155725382.9609.help-gnu-emacs@gnu.org>
@ 2006-08-16 11:53   ` Giorgos Keramidas
  0 siblings, 0 replies; 5+ messages in thread
From: Giorgos Keramidas @ 2006-08-16 11:53 UTC (permalink / raw)


On Wed, 16 Aug 2006 12:49:33 +0200, Peter Dyballa <Peter_Dyballa@web.DE> wrote:
> Am 16.08.2006 um 11:17 schrieb A. Drosos:
>> I tried to google for an answer to this problem and tried a
>> great variety of possibilities in my .emacs file to bind C-å
>> back to C-e, with no success.
>
> Have you also tried to bind C-å to the same command that C-e is
> performing?

This is going to be a major pain, as all the Greek characters,
accented, lowercase, and uppercase will have to grow mappings and
then these mappings will quickly get out of sync if you remap
some English-based key sequence from within Emacs with
global-set-key or local-set-key.

Unfortunately, I don't have a good solution for the OP's problem,
even though I'm also using Emacs with:

    (set-language-environment "Greek")

in my ~/.emacs file.

Regards,
Giorgos

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bind C-å o C-e
  2006-08-16  9:17 bind C-å o C-e A. Drosos
  2006-08-16 10:49 ` Peter Dyballa
       [not found] ` <mailman.5225.1155725382.9609.help-gnu-emacs@gnu.org>
@ 2006-08-16 12:06 ` Joost Kremers
  2006-08-17  4:17 ` bind C-ε " James Cloos
  3 siblings, 0 replies; 5+ messages in thread
From: Joost Kremers @ 2006-08-16 12:06 UTC (permalink / raw)


A. Drosos wrote:
> Hi
>
> I'm using emacs 22.0.50.1 build from source on a Linux from Scratch box. I'm
> also editing text documents in the greek language. On the console, I can
> switch between greek/english with LeftAlt-Shift and still be able to use the 
> regular C-e and similar sequences to move around my document. This does not
> happen in X-windows. The message I get for C-å (for example) and similar keys, 
> is that they are undefined.

it could be that this is not so much an emacs issue, but rather an
X-related issue. what happens in programs other than emacs?

-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bind C-ε o C-e
  2006-08-16  9:17 bind C-å o C-e A. Drosos
                   ` (2 preceding siblings ...)
  2006-08-16 12:06 ` Joost Kremers
@ 2006-08-17  4:17 ` James Cloos
  3 siblings, 0 replies; 5+ messages in thread
From: James Cloos @ 2006-08-17  4:17 UTC (permalink / raw)
  Cc: drososa

>>>>> "Drosos" == A Drosos <drososa@otenet.gr> writes:

Drosos> I'm using emacs 22.0.50.1 build from source on a Linux from Scratch
Drosos> box. I'm  also editing text documents in the greek language. On the
Drosos> console, I can switch between greek/english with LeftAlt-Shift and
Drosos> still be able to use the  regular C-e and similar sequences to move
Drosos> around my document. This does not happen in X-windows. The message I
Drosos> get for C-ε (for example) and similar keys, is that they are undefined.

I see the same thing with emacs-23 (the unicode-2 branch from cvs).

xev(1x) shows this for C-α:

,----(xev keypress event)
| KeyPress event, serial 30, synthetic NO, window 0x1000001,
|     root 0x4c, subw 0x0, time 440539587, (134,152), root:(760,179),
|     state 0x4000, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
|     XKeysymToKeycode returns keycode: 37
|     XLookupString gives 0 bytes: 
|     XmbLookupString gives 0 bytes: 
|     XFilterEvent returns: False
| 
| KeyPress event, serial 30, synthetic NO, window 0x1000001,
|     root 0x4c, subw 0x0, time 440539762, (134,152), root:(760,179),
|     state 0x4004, keycode 38 (keysym 0x61, a), same_screen YES,
|     XLookupString gives 1 bytes: (01) ""
|     XmbLookupString gives 1 bytes: (01) ""
|     XFilterEvent returns: False
`----

vs this for just α:

,----(xev keypress event)
| KeyPress event, serial 30, synthetic NO, window 0x1000001,
|     root 0x4c, subw 0x0, time 440536069, (134,152), root:(760,179),
|     state 0x2000, keycode 38 (keysym 0x7e1, Greek_alpha), same_screen YES,
|     XLookupString gives 2 bytes: (ce b1) "α"
|     XmbLookupString gives 2 bytes: (ce b1) "α"
|     XFilterEvent returns: False
`----

Apps like rxvt-unicode see the “state 0x4004, keycode 38 (keysym 0x61 a)”
and generate a C-a, but apps like emacs and gvim end up with keysym 0x7e1
and end up inserting a α or complaining that C-α isn’t bound.

I can only presume that emacs, et al are setting filters and such to track
the modifier keys themselves rather than relying on XLookupString(3x) and
friends to do it.  Or that by filtering out the modifier keys XLookupString(),
et al return different results.

AFAICS emacs will require a patch to fix this issue.  Until then you
can run it in a terminal window (rxvt-unicode is my favourite for
running « emacs -nw », but xterm is also good) if the current situation
gets in the way.  I use emacs-23 and emacs-22 quite a lot over ssh; it is
just as useful as running it in X11-native mode, given an adequate term.

-JimC
-- 
James Cloos <cloos@jhcloos.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-17  4:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16  9:17 bind C-å o C-e A. Drosos
2006-08-16 10:49 ` Peter Dyballa
     [not found] ` <mailman.5225.1155725382.9609.help-gnu-emacs@gnu.org>
2006-08-16 11:53   ` Giorgos Keramidas
2006-08-16 12:06 ` Joost Kremers
2006-08-17  4:17 ` bind C-ε " James Cloos

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.