From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Alt vs Meta - Sun keyboard, redhat linux Date: Mon, 3 Jan 2011 23:53:39 +0100 Message-ID: References: <6c4514cc-28cf-4a1d-8afe-6dcec2325b05@z9g2000yqz.googlegroups.com> <12f2b857-0c03-44a8-a4fc-439bd083b0d1@j19g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294095258 19298 80.91.229.12 (3 Jan 2011 22:54:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2011 22:54:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: chengiz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 03 23:54:14 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZtI4-0006aW-L8 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jan 2011 23:54:12 +0100 Original-Received: from localhost ([127.0.0.1]:47912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZtI4-0000sS-4X for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jan 2011 17:54:12 -0500 Original-Received: from [140.186.70.92] (port=36725 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZtHh-0000p2-Mz for help-gnu-emacs@gnu.org; Mon, 03 Jan 2011 17:53:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZtHg-0006zl-Jp for help-gnu-emacs@gnu.org; Mon, 03 Jan 2011 17:53:49 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:39973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZtHg-0006zh-3K for help-gnu-emacs@gnu.org; Mon, 03 Jan 2011 17:53:48 -0500 Original-Received: from smtp08.web.de ( [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 26B47184C342F; Mon, 3 Jan 2011 23:53:41 +0100 (CET) Original-Received: from [91.35.238.220] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #2) id 1PZtHY-0002YL-00; Mon, 03 Jan 2011 23:53:40 +0100 In-Reply-To: <12f2b857-0c03-44a8-a4fc-439bd083b0d1@j19g2000prh.googlegroups.com> X-Mailer: Apple Mail (2.936) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/nN2vX+YcVArC8IyLS6Pd/KfkoXbMBKwHi3zXE L4gdvM8Ha7e9p8CG2x4lrsw7uohVGVBSst/5sOUuDtv6aW6Wkl Sx7W1+rOnweWShAklAAA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78138 Archived-At: Am 03.01.2011 um 21:25 schrieb chengiz: > Which of these "Mod?"s does emacs use for its Alt modifier? My current > xmodmap already has Alt_L at Mod1. I want emacs to treat this like > Emacs-alt (ie. the rarely used Alt modifier mentioned at > = http://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-Keyboard.= html) > rather than Emacs-meta. Why do you think the Alt and Meta key modifiers have something to do =20 with MS Losedos? The Meta modifier is the M in, for example, M-x. M-ESC is ESC-ESC. The =20= Meta modifier is accepted by GNU Emacs as the "Meta" modifier. The Alt modifier can select up to two (two, because with and without =20 Shift pressed) character keyboard layouts. On my keyboard, for =20 example, Alt-a produces =E5 and Alt-S-a =C5. The Alt modifier is = accepted =20 by GNU Emacs as the "Alt" modifier. If you want to find out what some "Alt" named key on your keyboard =20 produces, then use xev (best launched from a *shell* buffer in GNU =20 Emacs), give it the focus and press that key. Xev will produce some =20 cryptic output that can be deciphered to some meaning. Similarly =20 proceed with the "Meta" titled key on your keyboard. With the =20 information of the key codes these keys generate when pressed or =20 released, you can reset "key bindings" in X11: keycode =3D Alt_R keycode =3D Meta_L Actually my first example was incomplete, because changing the =20 sequence of modifiers does not change their meaning because the keys =20 have also a keysym by which they are understood. When you write that you have the Alt_L modifier already defined, then =20= find out which key produces this modifier event. Xev can be your =20 friend. Once you've located the Alt_L key on your keyboard, you can =20 use it in GNU Emacs. The xkeycaps utility might be able to have your =20 keyboard layout loaded. Then you'll see graphically what you press. -- Greetings Pete Ce qui =E9t=E9 compris n'existe plus. (Paul Eluard)