From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?S=E9bastien_Kirche?= Newsgroups: gmane.emacs.help Subject: Re: global-set-key with altGr on PC Date: Tue, 14 Oct 2003 17:51:15 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E793F0A-FE5E-11D7-A682-000393861220@sage.com> References: <3F8C1693.7050805@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1066146824 1685 80.91.224.253 (14 Oct 2003 15:53:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2003 15:53:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 17:53:42 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9RUU-0002zh-00 for ; Tue, 14 Oct 2003 17:53:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9RU0-0004Xv-L5 for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2003 11:53:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9RTc-0004XX-9G for help-gnu-emacs@gnu.org; Tue, 14 Oct 2003 11:52:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9RT6-0004Qb-CV for help-gnu-emacs@gnu.org; Tue, 14 Oct 2003 11:52:47 -0400 Original-Received: from [195.25.216.129] (helo=Mis.sage.fr) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9RT5-0004Q1-OK for help-gnu-emacs@gnu.org; Tue, 14 Oct 2003 11:52:15 -0400 Original-Received: from sage.com (SEKIMACG4 [172.18.3.54]) by Mis.sage.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id TFSGAB2L; Tue, 14 Oct 2003 17:55:07 +0200 Original-To: emacs-help In-Reply-To: <3F8C1693.7050805@yahoo.com> X-Mailer: Apple Mail (2.552) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13176 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13176 =09 Le mardi, 14 oct 2003, =E0 17:30 Europe/Paris, Kevin Rodgers a =E9crit : > > You have to modify the function bound to AltGr-e to behave differently > > when it's called with a prefix arg (C-u): > > (defun insert-euro (&optional arg) > "Insert the ISO 8859-15 Euro symbol. > With a prefix arg, insert the corresponding Unicode character = instead." > (interactive) > (if arg > (insert (make-char 'mule-unicode-0100-24ff 116 76)) > (insert (make-char 'latin-iso8859-15 164)))) > > (global-set-key [128] 'insert-euro) ; AltGr-e > > --=20 > Kevin Rodgers Thanks Kevin, That's *just* what i need :) I still have to improve elisp. Manual is ordered, i am just waiting for it to cross the see to France=20= :) S=E9bastien Kirche