From: Marko Rauhamaa <marko@pacujo.net>
Subject: Latin-3 XKeysyms
Date: 10 Nov 2003 23:35:51 -0800 [thread overview]
Message-ID: <m37k27jr1k.fsf@lumo.pacujo.net> (raw)
After many years of frustration I finally took the bull by the horns and
figured out why emacs 21.3 still ignores Latin-3 XKeysyms like
XK_Ccircumflex. In fact, here's a simple patch that fixes the problem:
========================================================================
--- src/keyboard.c.bak 2003-11-10 23:30:13.000000000 -0800
+++ src/keyboard.c 2003-11-10 23:29:52.000000000 -0800
@@ -4670,6 +4670,12 @@
/* A function key. The symbol may need to have modifier prefixes
tacked onto it. */
case non_ascii_keystroke:
+ if (event->code >= 0x200 && event->code < 0x300) {
+ Lisp_Object lispy_c;
+
+ XSETFASTINT (lispy_c, event->code + 0x700);
+ return lispy_c;
+ }
button_down_time = 0;
for (i = 0; i < sizeof (lispy_accent_codes) / sizeof (int); i++)
========================================================================
(I hearby donate the patch to the FSF. I created it on my own computer
in my home in California, where slave contracts are not enforceable. I
certify that no other party can possibly have any claim to the patch. In
fact, since those lines are an almost verbatim copy of a few lines
above, I shouldn't have any claim to it to begin with.)
Marko
--
Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/
next reply other threads:[~2003-11-11 7:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-11 7:35 Marko Rauhamaa [this message]
2003-11-11 15:34 ` Latin-3 XKeysyms Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m37k27jr1k.fsf@lumo.pacujo.net \
--to=marko@pacujo.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).