unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Sébastien Kirche" <sebastien.kirche@sage.com>
Subject: global-set-key with altGr on PC
Date: Tue, 14 Oct 2003 14:28:37 +0200	[thread overview]
Message-ID: <EF4A83E0-FE41-11D7-A6A2-000393861220@sage.com> (raw)

Hi all,

to resolve the insertion of the euro symbol i have defined the 
following in my .emacs :
,----
| (defun insert-euro () "Insert Euro sign"
|   (interactive)
|   (insert (make-char 'latin-iso8859-15 164))
| )
| (defun insert-euro-unicode () "Insert Unicode Euro"
|   (interactive)
|   (insert (make-char 'mule-unicode-0100-24ff 116 76))
| )
`----

To help for easy typing, i have added that (for PC):
,----
|(global-set-key [128] 'insert-euro); C-h l gives \200 for euro 
(AltGr-e) = 128 dec
`----
This works fine.
But then i tried to add another key like C-u AltGr-e for 
insert-euro-unicode,
,----
| (global-set-key (concat "\C-u" [128]) 'insert-euro)
| or
| (global-set-key "\C-u\200 'insert-euro) ; \200 is C-q AltGr-e
`----
but it fails with the following:
error: Key sequence C-u C-M-@ uses invalid prefix characters

How can I define a global-set-key with C-u Altgr-e ?

Thanks for help.
Sébastien Kirche

             reply	other threads:[~2003-10-14 12:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 12:28 Sébastien Kirche [this message]
     [not found] <mailman.1662.1066134615.21628.help-gnu-emacs@gnu.org>
2003-10-14 15:30 ` global-set-key with altGr on PC Kevin Rodgers
2003-10-14 15:51   ` Sébastien Kirche
2003-10-14 16:35     ` Sébastien Kirche
2003-10-14 17:01   ` Kevin Rodgers

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=EF4A83E0-FE41-11D7-A6A2-000393861220@sage.com \
    --to=sebastien.kirche@sage.com \
    /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.
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).