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 15:13:40 +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 1319728446 30914 80.91.229.12 (27 Oct 2011 15:14:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 15:14:06 +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 17:14:01 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 1RJReb-0007qj-Gc for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 17:14:01 +0200 Original-Received: from localhost ([::1]:60197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJRea-0004Fr-Rw for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 11:14:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJReV-0004Fm-UC for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 11:13:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJReS-0003AC-DR for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 11:13:55 -0400 Original-Received: from usslmhub002.ugs.com ([134.244.32.85]:50266 helo=ugs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJReS-0003A2-8u for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 11:13:52 -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 10:13:41 -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 10:13:41 -0500 Thread-Topic: tab character Thread-Index: AQHMlK6015cH8NrIZ0eiF7varYa5kZWQP5dggABehID//6y88A== 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:82667 Archived-At: Sure, but in a Makefile, you should be in Makefile mode (Major mode for edi= ting Makefiles), and it inserts TAB characters.... Cheers, 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 10:05 AM To: help-gnu-emacs@gnu.org Subject: Re: tab character On Thu, Oct 27, 2011 at 8:01 PM, Ludwig, Mark wro= te: If you just want it to insert a TAB character every time, just map the key = to self-insert-command. Yes I gathered that this is the only way (or=A0 C-q TAB).=A0 Seems fairly l= ow-level for such a basic usage... Are you familiar with M-i that runs tab-to-tab-stop? =A0That might be what = you want, too, especially if you want spaces inserted to 'equal' what the T= AB character would do on a typewriter, for instance. I need tab to be entered as tab without any questions or ambiguity (think m= akefiles?) =A0 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?