From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Indenting text bugs. Date: Tue, 2 Mar 2010 16:19:41 -0800 Message-ID: <0EA5942CFF39427ABFD97B58C924CF52@us.oracle.com> References: <73384c13-4532-43a8-ac2d-6205161cf1a8@e1g2000yqh.googlegroups.com><904A495662EE4DD9B0863B2BF147787B@us.oracle.com><4B8D8D03.3050202@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267575713 19951 80.91.229.12 (3 Mar 2010 00:21:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Mar 2010 00:21:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Lennart Borgman'" , "'Suvayu Ali'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 03 01:21:44 2010 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 1NmcLP-0006Wu-72 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Mar 2010 01:21:43 +0100 Original-Received: from localhost ([127.0.0.1]:60316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmcLO-0001TY-IA for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Mar 2010 19:21:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmcKz-0001TO-HE for help-gnu-emacs@gnu.org; Tue, 02 Mar 2010 19:21:17 -0500 Original-Received: from [140.186.70.92] (port=49372 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmcKy-0001TF-OC for help-gnu-emacs@gnu.org; Tue, 02 Mar 2010 19:21:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmcKx-00058Y-VY for help-gnu-emacs@gnu.org; Tue, 02 Mar 2010 19:21:16 -0500 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:22005) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmcKx-00058S-N2 for help-gnu-emacs@gnu.org; Tue, 02 Mar 2010 19:21:15 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o230LChq024367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Mar 2010 00:21:13 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o22JCERe032396; Wed, 3 Mar 2010 00:21:10 GMT Original-Received: from abhmt004.oracle.com by acsmt353.oracle.com with ESMTP id 59964421267575579; Tue, 02 Mar 2010 16:19:39 -0800 Original-Received: from dradamslap1 (/10.175.218.42) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 02 Mar 2010 16:19:38 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acq6Yk+wQsGlfFZqT6+w+VaM5Bs32wAAKJtA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4B8DAB78.0034:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:72324 Archived-At: > >> Normally, `M-TAB' (hence `ESC TAB') will complete text > >> (e.g. a function name) at point. It is bound by default > >> to `complete-symbol', `lisp-complete-symbol', > >> `completion-at-point', or something similar, depending on > >> the current mode and your Emacs version. > > > > Isn't that a very inconvenient default? Almost every window > > manager across platforms intercept that to switch windows... No, they do not intercept `ESC TAB'. Some, such as Windows, do, by default, intercept ALT-TAB, which maps to `M-TAB' by default (that's two "by default"s ;-)). But you need only do this to make Windows pass `M-TAB' along to Emacs: ;; (setq w32-alt-is-meta t) (when (fboundp 'w32-register-hot-key) (w32-register-hot-key [M-tab])) The first line is not really needed - t is the default value. Variable `w32-alt-is-meta' determines whether ALT maps to Meta. The other lines tell Windows to pass `M-TAB' to Emacs. If ALT maps to Meta, you can register [M-tab] as a hot key. If it does not, you can register [A-tab] as the hot key. > Yes, some of us think that it is. Note hoever that it is "Meta-Tab", > not "Alt-Tab". Yes and no. It is `M-TAB' in its incarnation as ALT-TAB. It is not `M-TAB' in its incarnation as `ESC TAB'. ;-) Kidding aside, It's useful for users to know that they can use ESC instead of ALT to realize Meta key sequences. Oldsters know this, because Emacs Meta predates Meta as ALT key (AFAIK). In older versions of Emacs, Meta key bindings are even listed as bindings on the ESC keymap. And it is useful to know that it is the ALT key that Windows grabs by default (e.g. ALT-TAB); it is not necessarily the Meta key - as you indicate yourself, Lennart, in what you say next: > Personally I use the left window key (instead of Alt) as Emacs' Meta. In sum: 1. You can use ESC instead of the Alt key, even if Windows grabs ALT-TAB. 2. If you want, you can tell Windows not to grab ALT-TAB but to pass it along to Emacs. (3. If you want, Emacs will fix you a delicious bouillabaisse for supper...)