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: C-i and tab problem persists in 21.2 Date: Mon, 09 Dec 2002 16:01:44 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84znrfdynb.fsf@lucy.cs.uni-dortmund.de> References: <3df4a38f@news.uni-ulm.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039446907 9274 80.91.224.249 (9 Dec 2002 15:15:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Dec 2002 15:15:07 +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 18LPcb-0002Op-00 for ; Mon, 09 Dec 2002 16:15:01 +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 18LPTl-0005XV-0A for gnu-help-gnu-emacs@m.gmane.org; Mon, 09 Dec 2002 10:05:53 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1039446107 32122876 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:X/btqrWxNr3swWuyo04yyT+FpfI= Original-Xref: shelby.stanford.edu gnu.emacs.help:107888 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:4436 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4436 "Boris H." writes: > (progn > (global-set-key [tab] (global-key-binding "\C-i")) > (global-set-key "\C-i" 'ispell-word)) > > When I press C-h k C-i, Emacs tells "TAB runs the command lisp-indent-line". That's because the initial buffer is *scratch* which is in a special mode. What happens when you C-x b foo RET to create a new buffer foo? This should be in fundamental mode. If this was it, then you just need to repeat the global-set-key for C-i for all modes. For example: (define-key lisp-interaction-mode-map "\C-i" 'ispell-word) > The above code with local-set-key does not work either. It would be local to the wrong buffer, if executed from .emacs, I guess. > Also, I still haven't found out how to make the left mouse button act like > the middle one in the speedbar (without changing buttons globally). This is a little involved... Hm. -- ~/.signature is: umop ap!sdn (Frank Nobis)