From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: =?iso-8859-1?q?Re=3A_global-set-key__=5B=3F_=5C_M-=F6=5D?= Date: Thu, 29 May 2003 15:13:13 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84d6i1gal2.fsf@lucy.is.informatik.uni-duisburg.de> References: <3EC936AD.41BBBEC8@gmx.net> <87of1ybr5p.fsf@bach.composers> <3ECB2DA2.107EDA4@gmx.net> <5lr86o8jox.fsf@rum.cs.yale.edu> <84k7cbctvz.fsf@lucy.is.informatik.uni-duisburg.de> <3ED5E4CF.EC6D6505@gmx.net> <844r3ermo4.fsf@lucy.is.informatik.uni-duisburg.de> <3ED5FEAD.1A00C535@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054214187 1579 80.91.224.249 (29 May 2003 13:16:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 29 May 2003 13:16:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 29 15:16:25 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19LNG8-0000Nw-00 for ; Thu, 29 May 2003 15:15:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LNFZ-0004Jr-CO for gnu-help-gnu-emacs@m.gmane.org; Thu, 29 May 2003 09:15:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!pd9e1e519.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 81 Original-NNTP-Posting-Host: pd9e1e519.dip.t-dialin.net (217.225.229.25) Original-X-Trace: fu-berlin.de 1054214017 6011904 217.225.229.25 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:IAzGQJ4wIuRGyYGp37PikNuGvWI= Original-Xref: shelby.stanford.edu gnu.emacs.help:113841 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10335 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10335 Martin aus Chemnitz writes: >> I created a file foo.el that looks like this (two lines): > : >> I then started Emacs as follows: > : >> In the *scratch* buffer, I moved to the beginning of the buffer and > > My *scratch* buffer is empty if I start with "-l foo.el", but I type > in some word and do the same. Ah, good. >> then I typed ESC " o. (I don't have a German keyboard, so >> " o is my way of typing the ö character in X11. You would >> hit your ö key directly.) The cursor moved forward a word. > > Do you mean M-ö? When I type M-ö nothing happens. What happens with ESC ö? > C-h k M-ö produces `M-ö is undefined'. Hm. > If I type in ö and C-u C-x C-= over it I get a similar result as you: > `latin-iso8859-1'. > ,---- > | character: ö (04366, 2294, 0x8f6) > | charset: latin-iso8859-1 > | (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100) > | code point: 118 > | syntax: word > | category: l:Latin > |buffer code: 0x81 0xF6 > | file code: F6 (encoded by coding system iso-latin-1-dos) > : > `---- > > If I open foo.el and do the same I get latin-1 as well. > > ,---- > | character: ö (04366, 2294, 0x8f6) > | charset: latin-iso8859-1 > | (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100) > | code point: 118 > | syntax: word > | category: l:Latin > |buffer code: 0x81 0xF6 > | file code: F6 (encoded by coding system iso-latin-1-dos) > : > `---- Okay, so I guess that ESC ö would work. Hm. I haven't tried M-ö because I don't know how to type that on my US keyboard. > M-x local-set-key M-ö forward-word > works well and assigns the key. The file foo.el does not. > > But if my foo.el looks like this > ,---- > | ;-*- unibyte:t -*- > | (global-set-key (kbd "M-ö") 'forward-word) > `---- > and I start Emacs like above, the key is assigned. Fascinating. > I'll get the same behaviour as you for latin-9, but latin-1 file does > not work. So latin-9 doesn't work, either, right? You get a beep and C-h k tells you the key is undefined? Anyhow, thanks for all the testing. I wonder what can be done at this point, and how come that your keys are different. What's keyboard-coding-system, btw? M-x describe-coding-system RET RET should tell you. -- This line is not blank.