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: Alt as meta, except for certain keys, how? Date: 07 Aug 2003 20:33:14 +0300 Organization: University of Helsinki Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1060278358 14832 80.91.224.253 (7 Aug 2003 17:45:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2003 17:45:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 19:46:21 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 19koqD-0007Ez-00 for ; Thu, 07 Aug 2003 19:46:21 +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 19kopV-0004af-DL for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2003 13:45:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!newsfeed.mathworks.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news-stoc.telia.net!news-stoa.telia.net!telia.net!nntp.inet.fi!inet.fi!fi.sn.net!newsfeed1.fi.sn.net!news.cc.tut.fi!news.helsinki.fi!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: venus.ling.helsinki.fi Original-X-Trace: oravannahka.helsinki.fi 1060277594 11491 128.214.78.39 (7 Aug 2003 17:33:14 GMT) Original-X-Complaints-To: abuse@helsinki.fi Original-NNTP-Posting-Date: 7 Aug 2003 17:33:14 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:115733 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:11652 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11652 Hello, I'm tearing my hair off. I want to use Alt as a Meta key, with the exception that certain keys should be interpreted as ordinary unmodified characters: Alt-7 should produce vertical bar |, Shift-Alt-7 alias Alt-/ should produce backslash \, and there are a few others, all in ASCII. I have managed to (global-set-key "\M-7" "|"). That works for writing but is not a real solution. At least in an incremental search Alt-7 has already been interpreted as two keys: the escape terminates the search and 7 is inserted in the buffer. I could not work out how to use keyboard-translate to turn Alt-7 into vertical bar. If this is possible, could someone please show me the concrete command? Or any other way to achieve my goal? Emacs is 21.3.50.6 from 2002-11-27, a binary distribution for Mac OS X, the keyboards are Apple's - Finnish layout - Alt is sometimes called Option. I know I lose a couple of command bindings; I can produce all accented letters with dead keys. Thanks for any help, -- Jussi