From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Two Emacs challenges Date: Fri, 16 Jun 2006 22:21:22 +0200 Message-ID: <449312C2.1050203@student.lu.se> References: <4493114A.1010508@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1150489313 6921 80.91.229.2 (16 Jun 2006 20:21:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2006 20:21:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Leon Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 16 22:21:50 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FrKp3-00053o-6m for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jun 2006 22:21:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrKp2-0004I1-Lq for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jun 2006 16:21:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FrKoo-0004HN-Bo for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 16:21:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FrKom-0004GY-IL for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 16:21:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrKom-0004GV-Dm for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 16:21:24 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FrKyT-0002lG-EB for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 16:31:25 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.072.1) id 4492E80F00009D31; Fri, 16 Jun 2006 22:21:22 +0200 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) Original-To: Lennart Borgman In-Reply-To: <4493114A.1010508@student.lu.se> 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:35511 Archived-At: Lennart Borgman wrote: > Leon wrote: >> Dear all, >> >> I found two useful key bindings but they seems not obvious to achieve. >> >> (1) Ctrl+Tab & Alt+Tab >> >> Since most window managers have used Alt+Tab for switching windows, >> Alt+Tab key bindings is useless in Emacs running in X. Is there >> something I can set in ~/.emacs so that Alt+Tab will be remapped to >> Ctrl+Tab? For example, if AUCTeX has bound to >> TeX-complete-symbol, the function should be *automatically* bound to >> when I enter LaTeX-mode. >> > From the manual to the next version of Emacs (22): > > The character `M-' runs a command to complete the partial > symbol before point against the set of meaningful symbol names. This > command inserts at point any additional characters that it can > determine from the partial name. (If your window manager defines > `M-' to switch windows, you can type ` ' or `C-M-i'.) Forgot to say that this is actually not quite correct. The window manager knows nothing about M (Meta) which is Emacs specific. The window manager uses Alt-Tab. However Emacs might have bound Meta to Alt. So another option might be to move Meta to some other key that you can use conveniently. (I myself have Meta on the windows keys.)