[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Enhancement - More keysyms on MacOSX/Aqua
From: |
Benjamin Riefenstahl |
Subject: |
Enhancement - More keysyms on MacOSX/Aqua |
Date: |
15 Dec 2002 19:13:38 +0100 |
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the address@hidden mailing list.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
On MacOSX/Aqua, I was missing the ability to bind <s-escape>. The
reason was that the escape key sends the ASCII ESC instead of the
keysym <escape>, and ASCII keys can not be combined with the shift key
(there is an exception for SPC in src/keyboard.c, make_lispy_event()).
The attached patch adds generation of keysyms for <tab>, <backspace>
and <escape>. The current keysym converter does not allow to encode
<space> (and space already has a special exception anyway), so I left
that alone.
I also added some entries in function-key-map for these keys, copied
from the X11 and MS Windows files. Is there a reason why these
mappings are not in a platform-independent file? They are not used on
a character terminal but they don't pose a problem there either. OTOH
they are currently maintained in three separate places for the GUI
systems.
Thirdly I cleaned up the table keycode_to_xkeysym_table a bit and
added more comments. I can send a patch without that change if you
prefer that.
Finally it would be possible to extend the mentioned SPC exception to
other ASCII special keys, which would achive a similar effect. That
would probably mean more capabilities on character terminals, so it
may be desirable anyway.
ChangeLog:
2002-12-15 Benjamin Riefenstahl <address@hidden>
* src/macterm.c (keycode_to_xkeysym_table): Add <tab>,
<backspace>, <escape>.
(keycode_to_xkeysym_table): Reformat and add more comments.
(XTread_socket): Drop special case for backspace.
* lisp/term/mac-win.el: Add entries in function-key-map for
[tab], [backspace], [escape].
emacs.keysym.diff
Description: Text Data
In GNU Emacs 21.3.50.7 (powerpc-apple-darwin6.2)
of 2002-12-13 on octavian.benny.turtle-trading.net
configured using `configure '--with-carbon' '--without-x''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Recent input:
<return> <up> <up> <down> <down> <down> <down> <up>
<up> <down> <down> <up> <up> <down-mouse-1> <mouse-movement>
<mouse-1> <down> <down> <up> <up> <down> <up> <up>
<up> <up> <down> <down> <S-escape> <down> <C-kp-end>
<up> <return> <kp-next> <kp-next> <kp-prior> <kp-prior>
<S-escape> <C-kp-end> <C-kp-home> <down> <down> <return>
<C-kp-home> C-h i t d m e m a c s <return> s b u <backspace>
<backspace> r e p o r t <return> <kp-home> <right>
<right> <return> <kp-next> <down> <return> <kp-next>
<kp-next> <kp-prior> <kp-next> <kp-next> <kp-next>
<kp-next> <kp-next> <kp-next> <kp-next> <kp-next> <kp-next>
<kp-next> <kp-next> <kp-next> <kp-next> <C-kp-home>
C-x o M-x <up> <return>
Recent messages:
Sending...done
line-move: Beginning of buffer [2 times]
Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help.
Mark set
Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help.
Mark set [3 times]
Composing main Info directory...
Mark set
Composing main Info directory...done
Mark set
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Enhancement - More keysyms on MacOSX/Aqua,
Benjamin Riefenstahl <=