From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim McNamara Newsgroups: gmane.emacs.help Subject: Re: OSX Meta bound to Esc! Date: Sat, 10 Jan 2004 00:11:58 -0600 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073715463 22195 80.91.224.253 (10 Jan 2004 06:17:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2004 06:17:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 10 07:17:40 2004 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 1AfCRH-0002fg-00 for ; Sat, 10 Jan 2004 07:17:39 +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 1AfDMm-0003dB-Tv for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Jan 2004 02:17:04 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!gemini.bitstream.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) Cancel-Lock: sha1:p7/LHtrhFqgEuMKLipr3yHWbNak= Original-Lines: 59 Original-NNTP-Posting-Host: 04de1bb9.news.bitstream.net Original-X-Trace: 1073715124 gemini.bitstream.net 1101 216.243.177.155 Original-X-Complaints-To: abuse@bitstream.net Original-Xref: shelby.stanford.edu gnu.emacs.help:119948 comp.emacs:82755 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:15884 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15884 zeppenwolf@angelfire.com (zeppenwolf) writes: > In the emacs I get by typing "emacs" in the OSX unix shell prompt, I > get an instance of emacs which has the "meta" stroke bound to the > "esc" keyboard key. Yup. > Clearly, this is preposterous, right? How can I bind the meta > stroke to the option key? I'd like to learn emacs and answer my own > question, but one can't easily get through the tutorial without a > workable meta key! There's nothing preposterous about it. "Meta" is bound to both the ESC and Meta keys by default, when there is a Meta key and just to Esc when there is not. Often the Alt key is used as a substitute for the Meta key. In fact, the documentation makes this clear. The problem lies not with Emacs but with OS X. Try launching Terminal and then going to Terminal menu -> Window Settings -> Keyboard popup menu and make sure that the checkbox for using the Alt key as Meta is checked. If you're using an X11 version, you'll have to set one of the X11 configuration files to map the Alt key as Meta. I haven't bothered to fix this yet, as the ESC key and the menus do the job just fine. Neither the Alt key nor the Cmd key work for Meta, which is a change I noticed after updating from OS X 10.1.5 to OS X 10.3.2, with Emacs built from the same sources. Under 10.1.5 it worked fine, so Apple broke something when they updated the OS. Alternatively your could try one of the several Carbon builds of Emacs, which generally have this fixed (they may use the Cmd key as Meta). > PS: It (emacs) doesn't seem to work very well in other ways... keys > dropped, stalling, just generally poo behaviour. I can live with > all that; I'm just hoping to refresh/learn emacs while waiting for > customers on my job, but it's surprisingly fraught with issues. > ISTR having a version of emacs which ran on my System 7 (!) machine > much better than this one... It's Apple, not Emacs. There are moments of slowness, for a second or two, when dealing with big files and such. However, that deault version of Emacs provided in OS X is way behind the times- version 20.7 IIRC. Get a new one, it's light years better. If you've got Panther and XCode, you can build yourself a spiffy new Emacs from CVS in a snap, with fancy windows and graphics support and a menu bar and everythang. And it runs great under X11 or Carbon, or you can build it without X support. Even someone like me, with no programming experience except an "Intro to Fortran" course 25 years ago, can build a successful Emacs. Follow the download instructions on the Savannah CVS site and the build instructions on Andrew Choi's site: http://savannah.gnu.org/cvs/?group=emacs http://members.shaw.ca/akochoi-emacs/