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: tab character Date: Thu, 27 Oct 2011 19:15:03 +0530 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015176f03ccc55dbe04b047fa9b X-Trace: dough.gmane.org 1319723125 21220 80.91.229.12 (27 Oct 2011 13:45:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 13:45:25 +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 15:45:21 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 1RJQGl-0004WY-Nw for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 15:45:20 +0200 Original-Received: from localhost ([::1]:59383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJQGk-0001yo-Nq for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 09:45:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJQGb-0001x1-2S for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 09:45:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJQGW-0000DV-LD for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 09:45:09 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:38117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJQGW-0000Cx-I1 for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 09:45:04 -0400 Original-Received: by iagf6 with SMTP id f6so4034025iag.0 for ; Thu, 27 Oct 2011 06:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=LYlc+rSg0+hOij7OKcWcbdPeBwxmrUZb7AOzpdPdfSM=; b=vR6q4aarLJTyi/fvVUI4TDeJtm0u/sEqvVbrITRmfnTZvXETURcAckBpe1FRHaHOxZ C88wz6qK9tyVm3prgPTHEjr1NooDbJSEsOjcHDjBzNtdhbXvwIp+KDgJzXPKKpyIExdN qOxRi7o2RYfNHEIRgrWYgBrQj8HTmHJTY06+g= Original-Received: by 10.231.41.36 with SMTP id m36mr3626862ibe.48.1319723103247; Thu, 27 Oct 2011 06:45:03 -0700 (PDT) Original-Received: by 10.231.149.202 with HTTP; Thu, 27 Oct 2011 06:45:03 -0700 (PDT) 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:82663 Archived-At: --0015176f03ccc55dbe04b047fa9b Content-Type: text/plain; charset=ISO-8859-1 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? --0015176f03ccc55dbe04b047fa9b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The tab-always-indent docs say:

-----------------------------
Con= trols the operation of the TAB key.
If t, hitting TAB always just indent= s the current line.
If nil, hitting TAB indents the current line if poin= t 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 th= ing 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.&quo= t;
=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 cod= e for a literal-tab-mode.=A0 So am I right in guessing that that is the onl= y approach if one wants tab characters to be entered?
--0015176f03ccc55dbe04b047fa9b--