From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.help Subject: Re: tab character Date: Thu, 27 Oct 2011 20:35:13 +0530 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015176f03cc7f9d0f04b0491933 X-Trace: dough.gmane.org 1319727934 26794 80.91.229.12 (27 Oct 2011 15:05:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 15:05:34 +0000 (UTC) To: "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:05:29 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 1RJRWJ-0003Tg-5J for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 17:05:27 +0200 Original-Received: from localhost ([::1]:34232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJRWI-0001HQ-LW for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 11:05:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJRWC-0001H7-Ku for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 11:05:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJRW6-0001XS-TY for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 11:05:20 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:36455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJRW6-0001X6-Kq for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 11:05:14 -0400 Original-Received: by iagf6 with SMTP id f6so4159693iag.0 for ; Thu, 27 Oct 2011 08:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Tf+1Hkj7Pwzfm9ERQIDC7cXGqzSnVoYhsQ59qxY9XXM=; b=DF9iPmfdF+fKyrIPHQ4z0U37vZvbgA9M9w4cd351UWxfVSkaB8NoWcAw7g4ftq/AmA WDe5HUBg+cZ+HhPpUQtpa4ZPp60vfwmYsa6s3I+/guekQKz2iLtfQaTAm4QynscU9ZLA heD8ZcN1pvxX5WvUhXMAsrFjOIb00XVqsqAno= Original-Received: by 10.231.41.36 with SMTP id m36mr3720937ibe.48.1319727913737; Thu, 27 Oct 2011 08:05:13 -0700 (PDT) Original-Received: by 10.231.149.202 with HTTP; Thu, 27 Oct 2011 08:05:13 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 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:82666 Archived-At: --0015176f03cc7f9d0f04b0491933 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Oct 27, 2011 at 8:01 PM, Ludwig, Mark wrote: > 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 C-q TAB). Seems fairly low-level for such a basic usage... > Are you familiar with M-i that runs tab-to-tab-stop? That might be what > you want, too, especially if you want spaces inserted to 'equal' what the > TAB character would do on a typewriter, for instance. > > I need tab to be entered as tab without any questions or ambiguity (think makefiles?) > Hope this helps, > > Mark > > From: help-gnu-emacs-bounces+ludwig.mark=siemens.com@gnu.org [mailto: > help-gnu-emacs-bounces+ludwig.mark=siemens.com@gnu.org] On Behalf Of > Rustom Mody > 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." > :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. So am I right in guessing that that > is the only approach if one wants tab characters to be entered? > --0015176f03cc7f9d0f04b0491933 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Oct 27, 2011 at 8:01 PM, Ludwig, Mark <ludwig.mark@siemens.com> = wrote:
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 i= s the only way (or=A0 C-q TAB).=A0 Seems fairly low-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' wh= at the TAB character would do on a typewriter, for instance.


I need tab to be entered as tab without any quest= ions or ambiguity (think makefiles?)
=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 Mody<= br> 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 l= ine
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?

--0015176f03cc7f9d0f04b0491933--