From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gniuxiao Newsgroups: gmane.emacs.help Subject: How to separate key bindings of TAB and C-i? Date: Wed, 8 Nov 2006 13:07:34 +0800 Message-ID: <3dd9a95e0611072107m1c8e9123ga85ef8a61ac77dcf@mail.gmail.com> 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 1162962475 14326 80.91.229.2 (8 Nov 2006 05:07:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Nov 2006 05:07:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 08 06:07:53 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 1GhffD-0000Cj-Nk for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Nov 2006 06:07:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GhffD-0001t4-6b for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Nov 2006 00:07:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ghff1-0001sv-16 for help-gnu-emacs@gnu.org; Wed, 08 Nov 2006 00:07:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ghfez-0001rA-2t for help-gnu-emacs@gnu.org; Wed, 08 Nov 2006 00:07:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ghfey-0001r2-WA for help-gnu-emacs@gnu.org; Wed, 08 Nov 2006 00:07:37 -0500 Original-Received: from [64.233.182.184] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ghfey-00048D-M2 for help-gnu-emacs@gnu.org; Wed, 08 Nov 2006 00:07:36 -0500 Original-Received: by nf-out-0910.google.com with SMTP id d4so400850nfe for ; Tue, 07 Nov 2006 21:07:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=M6UrzbpnfluYLx4XBa+KRPdkK959Pjv2/fXp23O+3Uw6iVzcRKAkVgvcUSQAhWV4RswYNlJojJnznqceBzl4m16x9Sgk2Mex8CtackL6LzJAf8tFSeTBfKoZc8wDaWga30ffVdYAWvTyC9E+8ToPHM0vD1h9nA0r1+T4b/W/Y/g= Original-Received: by 10.78.18.12 with SMTP id 12mr5939834hur.1162962454983; Tue, 07 Nov 2006 21:07:34 -0800 (PST) Original-Received: by 10.78.190.20 with HTTP; Tue, 7 Nov 2006 21:07:34 -0800 (PST) Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline 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:38583 Archived-At: I want to insert a tab when type TAB and indent current line when type C-i, so I wrote the following codes: (defun my-insert-tab() (interactive) (insert " ")) (global-set-key (kbd "TAB") 'my-insert-tab) (global-set-key (kbd "C-i") 'lisp-indent-line) but both TAB and C-i invoke lisp-indent-line, then I changed the setting sequence to: (global-set-key (kbd "C-i") 'lisp-indent-line) (global-set-key (kbd "TAB") 'my-insert-tab) now both TAB and C-i invoke my-insert-tab. I think TAB and C-i are internally stick to each other, and I wanna know how to separate them, thanks ;-)