From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Cannot remap umlaut keys Date: Mon, 10 Nov 2003 16:17:25 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <878ymsf6o8.fsf@ID-28718.user.uni-berlin.de> <87islw6jen.fsf@ID-28718.user.uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1068482149 723 80.91.224.253 (10 Nov 2003 16:35:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2003 16:35:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 10 17:35:47 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 1AJF10-0007nL-00 for ; Mon, 10 Nov 2003 17:35:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AJFt0-0007Tv-PD for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Nov 2003 12:31:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help,de.comp.editoren Original-Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.42 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1068481045 132.204.24.42 (Mon, 10 Nov 2003 11:17:25 EST) Original-NNTP-Posting-Date: Mon, 10 Nov 2003 11:17:25 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:118057 de.comp.editoren:11009 Original-To: help-gnu-emacs@gnu.org 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:13997 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13997 >> (local-set-key [ö] "{") > [ö] or [?ö]? Oops, it should have been [?ö] indeed. > I forgot to mention that I tried to use [?ö] before I posted my article. > [?ö] (or [ö]) neither works under X *nor* on the console. > state 0x0, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES, > XLookupString gives 1 bytes: "ö" > I'm pretty sure that [?\366] worked in earlier versions of Emacs. I > think that I started to use the above piece of code when Emacs 19 was > current. No doubt about that. But I fixed this Emacs-19 bug ;-) >> This might not always work, tho. If it doesn't, then maybe your >> locale is not set properly. > The locale is set to de_DE.iso88591 which, according to "locale -a" is > supported by the C library. I also tried to use de_DE. Hmm... it should have worked. > My .emacs is encoded in ASCII. I encoded it in Latin-1 when I > experimented with [?ö]. I also tried UTF-8. Have you tried putting a -*- coding: latin-1 -*- on the first line to make sure that it is read with the proper coding system ? The problem is that there are many different ö characters in Emacs and it's important that Emacs read it as (make-char 'latin-iso8859-1 118) (i.e. 2294) since it is the event generated by Emacs for the odiaeresis key in an iso-8859-1 locale. Stefan