From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Silvio Levy Newsgroups: gmane.emacs.help Subject: Re: M-x mystery Date: Mon, 02 Jan 2012 14:33:15 -0800 Message-ID: <20120102223315.3E60F1810C9@neo.msri.org> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1325543614 7120 80.91.229.12 (2 Jan 2012 22:33:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jan 2012 22:33:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 02 23:33:30 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RhqRd-0004gU-N7 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jan 2012 23:33:29 +0100 Original-Received: from localhost ([::1]:54170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhqRX-0005TI-7p for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jan 2012 17:33:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhqRT-0005T1-3O for help-gnu-emacs@gnu.org; Mon, 02 Jan 2012 17:33:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RhqRR-0000IU-SR for help-gnu-emacs@gnu.org; Mon, 02 Jan 2012 17:33:19 -0500 Original-Received: from spike.lmi.net ([66.117.140.17]:57357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhqRR-0000IP-N3 for help-gnu-emacs@gnu.org; Mon, 02 Jan 2012 17:33:17 -0500 Original-Received: from neo.msri.org (75-101-50-210.dsl.static.sonic.net [75.101.50.210]) by spike.lmi.net (Postfix) with ESMTP id 29A06154150; Mon, 2 Jan 2012 14:33:16 -0800 (PST) Original-Received: by neo.msri.org (Postfix, from userid 1000) id 3E60F1810C9; Mon, 2 Jan 2012 14:33:15 -0800 (PST) Original-Received: from neo.msri.org (localhost [127.0.0.1]) by neo.msri.org (Postfix) with ESMTP id 23C3B180B85; Mon, 2 Jan 2012 14:33:15 -0800 (PST) In-reply-to: Your message of Mon, 2 Jan 2012 10:26:08 -0800 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 66.117.140.17 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83300 Archived-At: Hi, Sorry to bother you all, but the info in http://www.gnu.org/software/emacs/manual/html_node/elisp/Functions-for-Key-Lookup.html doesn't seem to correspond to my experience. I wonder if it corresponds to yours. First, let me tell you what does work as described. My ALT key does seem to be interpreted by Emacs as Meta, in principle. The page above says M-, a function key, is not converted into . and indeed, if I type ALT-F5 the response is " undefined", as expected. (I'm using F5 because my F1 is intercepted by the window manager - can't figure out how.) And, ALT-x is interpreted as ESC x, also as described above. The problem is the variable meta-prefix-char, which is supposed to alter that relationship. If I load a file containing only the command (setq meta-prefix-char [f5]) and check the value of the variable, the answer is [f5]. ******** Yet, after that, ALT-x is still interpreted as ESC x. ******** You might say that [f5] is not a valid prefix key. But [f2] is (it's bound to 2C-mode-map in two-column.el). After I set meta-prefix-char to [f2], typing ALT-x is still interpreted as ESC x, not [f2] x. In fact, I can't even duplicate the example near the bottom of the "Functions for Key Lookup" page (link above). Namely, setting meta-prefix-char to 24 **should** make M-x behave like C-x, according to that page. But that does not happen; even with meta-prefix-char=24, ALT-x is interpreted as ESC x. What have I misunderstood? This is all in emacs 23.1.50.1 called with -q. Silvio