From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Parsons Newsgroups: gmane.emacs.help Subject: Re: TAB key to insert tab character Date: 10 Feb 2008 01:18:41 GMT Message-ID: References: <13qppsk1c9mdg95@news.supernews.com> <13qrq5pk60d3n9a@news.supernews.com> Reply-To: ellenophilos@yahoo.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1202615947 18441 80.91.229.12 (10 Feb 2008 03:59:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Feb 2008 03:59:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 10 04:59:30 2008 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.50) id 1JO3Lj-00080Q-65 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Feb 2008 04:59:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JO3LG-00066X-5Y for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Feb 2008 22:58:58 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: individual.net FmR7u4+xJKGZLC9JTDaLwgSV5UHg73UOUubQ4K4Vi17EJoU/+I Cancel-Lock: sha1:L3i4DhJNvpqsWbGMfr1hy+4eETM= User-Agent: slrn/0.9.8.1 (FreeBSD) Original-Xref: shelby.stanford.edu gnu.emacs.help:156014 X-Mailman-Approved-At: Sat, 09 Feb 2008 22:55:26 -0500 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:51393 Archived-At: Eli Zaretskii wrote: >> From: Will Parsons >> Date: 9 Feb 2008 17:58:58 GMT >> >> You could do what I do - bind Ctrl-Tab to insert an ASCII : >> >> (global-set-key [C-tab] (lambda () (interactive) (insert-char 9 1))) > > I think it's better to bind TAB to self-insert-command: > > (global-set-key "\C-i" 'self-insert-command) I think you misunderstand - I'm perfectly happy to have do its usual default action, but I also want to have the ability to insert a character often enough to want something more convenient than C-q TAB, and for this I use [C-tab]. Whether this is acceptable to the OP is another matter, but since he rejected C-q Tab as too inconvenient, I thought it worth his consideration. - Will