From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: M-TAB already used by KDE Date: Tue, 17 Dec 2002 10:19:13 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84d6o1ove6.fsf@lucy.cs.uni-dortmund.de> References: <3dfe3ea4.1245206@news.cis.dfn.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040121027 19921 80.91.224.249 (17 Dec 2002 10:30:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 10:30:27 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18OEzU-0005As-00 for ; Tue, 17 Dec 2002 11:30:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18OEzj-0006HW-0D for gnu-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2002 05:30:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!peer1.news.newnet.co.uk!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1040120969 728467 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.93 (i686-pc-linux-gnu) Cancel-Lock: sha1:usd98gH245mJp7Id8GWOKC63msQ= Original-Xref: shelby.stanford.edu comp.emacs:76475 gnu.emacs.help:108209 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4738 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4738 marcel-sl@gmx.de (Marcel Schmittfull) writes: > I use KDE and therefore the keybinding M- is already used for > switching between windows. Unfortunately there are several emacs modes > which try to use M- for completion (f.e. lisp-mode, AUCTeX, ...). > However, the KDE setting seems to be "stronger" than the emacs setting > and hence I can only switch between windows with M-. One possibility is to use C-M-i instead of M-TAB. This is not ideal, I know. The new KDE is supposed to be able to coexist with Emacs better, but I find it's still not done, in KDE 3.0 at least. I've written a little patch for Emacs (which will be in 21.4, whenever that comes out) that allows you to tell Emacs to swap Alt and Meta. With that patch, I use it as follows. The keys labeled Alt generate the Alt_L and Alt_R keysyms, the key(s) with a flag on them generate(s) Meta_L (and Meta_R). Then KDE sees the Alt keys as Alt and the flag keys as "Win". Then I can configure the KDE keybindings ("shortcuts") so that Win-Tab can be used instead of Alt-Tab to switch between windows. (This is new in KDE 3 I think.) And also, I tell Emacs to swap Alt and Meta. Then I can use the keys labeled Alt as Meta keys in Emacs. To find the patch you can look on savannah.gnu.org for the Emacs CVS code. The file is src/xterm.c and you can find it by scanning the logs for my name. This patch can be extracted from CVS and applied to Emacs 21.2 (I've tested it with the 21.2.93 pretest which I'm currently using, so I presume it works with 21.2 as well). -- ~/.signature is: umop ap!sdn (Frank Nobis)