From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jussi Piitulainen Newsgroups: gmane.emacs.help Subject: Re: Alt as meta, except for certain keys, how? Date: 12 Aug 2003 11:26:34 +0300 Organization: University of Helsinki Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3F329CBE.8050706@yahoo.com> <3F33F14F.2060903@yahoo.com> <3F37FC9E.5000203@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060677325 28946 80.91.224.253 (12 Aug 2003 08:35:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2003 08:35:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 10:35:23 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 19mUcl-0003mj-00 for ; Tue, 12 Aug 2003 10:35:23 +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 19mUZ4-0006Jr-FV for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Aug 2003 04:31:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed1!bredband!uio.no!newsfeed.kolumbus.fi!newsfeed3.funet.fi!newsfeeds.funet.fi!news.cc.tut.fi!news.helsinki.fi!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: venus.ling.helsinki.fi Original-X-Trace: oravannahka.helsinki.fi 1060676794 15779 128.214.78.39 (12 Aug 2003 08:26:34 GMT) Original-X-Complaints-To: abuse@helsinki.fi Original-NNTP-Posting-Date: 12 Aug 2003 08:26:34 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:115821 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:11739 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11739 Kevin Rodgers writes: > So you need to use the vector notation for keys containing > meta-modified non-ASCII characters: > > (define-key key-translation-map [?\M- ...] ...) M-space? Anyway, that did not seem to work when I tried it. The key remained unbound. >> Is there a way to turn every valid key code into an >> Escape-Meta-Alt-Control-Shift-something? Or can I use a numeric key >> code with function-key-map? > > I don't understand your question. I'm sorry. A concrete instance of the first question is this. I'll write "letter" for the non-ASCII letters. The following works: (define-key key-translation-map [-134217482] "o") I would like to find out a more transparent syntax for that number; text-char-description does not do it. Things like [?\M-letter] and [?\M- ?letter] and [(meta ?letter)] do not seem to work. For the second question I know the answer now: the following works. (global-unset-key [-134217500]) (define-key function-key-map [-134217500] "a") I got these numbers by pressing the key I want to bind: Alt-letter, where Alt is Meta and letter is outside ASCII. However, ?\M-letter evaluates to -134215434 rather than -134217482. If I omit to set mac-keyboard-text-encoding to Latin-1, ?\M-letter evaluates to -134217574, which is again something else (and the key in question cannot be used to produce the letter any more). "\M-letter" evaluates to a string that contains just the letter. I think I'll use the numbers for these few keys. -- Jussi