From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ludwig, Mark" Newsgroups: gmane.emacs.help Subject: RE: tab character Date: Thu, 27 Oct 2011 14:31:05 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319725888 10650 80.91.229.12 (27 Oct 2011 14:31:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 14:31:28 +0000 (UTC) To: Rustom Mody , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 27 16:31:24 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJQzL-0002fb-B3 for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 16:31:23 +0200 Original-Received: from localhost ([::1]:38317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJQzH-0003W0-Ks for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 10:31:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJQzB-0003VR-SA for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 10:31:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJQzA-0001P1-DO for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 10:31:13 -0400 Original-Received: from usslmhub002.ugs.com ([134.244.32.85]:7126 helo=ugs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJQzA-0001ND-9i for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 10:31:12 -0400 Original-Received: from USSLMMBX002.net.plm.eds.com (161.134.138.62) by USSLMHUB002.net.plm.eds.com (134.244.32.85) with Microsoft SMTP Server (TLS) id 14.1.323.3; Thu, 27 Oct 2011 09:31:06 -0500 Original-Received: from USSLMMBX003.net.plm.eds.com ([169.254.2.222]) by USSLMMBX002.net.plm.eds.com ([169.254.1.240]) with mapi id 14.01.0323.003; Thu, 27 Oct 2011 09:31:06 -0500 Thread-Topic: tab character Thread-Index: AQHMlK6015cH8NrIZ0eiF7varYa5kZWQP5dg In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [146.122.220.102] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Received-From: 134.244.32.85 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82665 Archived-At: If you just want it to insert a TAB character every time, just map the key = to self-insert-command. Are you familiar with M-i that runs tab-to-tab-stop? That might be what yo= u want, too, especially if you want spaces inserted to 'equal' what the TAB= character would do on a typewriter, for instance. Hope this helps, Mark From: help-gnu-emacs-bounces+ludwig.mark=3Dsiemens.com@gnu.org [mailto:help= -gnu-emacs-bounces+ludwig.mark=3Dsiemens.com@gnu.org] On Behalf Of Rustom M= ody Sent: Thursday, October 27, 2011 8:45 AM To: help-gnu-emacs@gnu.org Subject: tab character The tab-always-indent docs say: ----------------------------- Controls the operation of the TAB key. If t, hitting TAB always just indents the current line. If nil, hitting TAB indents the current line if point is at the left margin or in the line's indentation, otherwise it inserts a \"real\" TAB character= . If `complete', TAB first tries to indent the current line, and if the line was already indented, then try to complete the thing at point. Some programming language modes have their own variable to control this, e.g., `c-tab-always-indent', and do not respect this variable." =A0 :group 'indent -------------------------------- Why is there nothing stronger than nil? IOW why is it so hard to just have = tab be tab with no conditions? In Miles Bader page on emacswiki http://www.emacswiki.org/emacs/MilesBader he has code for a literal-tab-mode.=A0 So am I right in guessing that that = is the only approach if one wants tab characters to be entered?