all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: Rustom Mody <rustompmody@gmail.com>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: tab character
Date: Thu, 27 Oct 2011 15:13:40 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1A67231995@USSLMMBX003.net.plm.eds.com> (raw)
In-Reply-To: <CAJ+TeofvbhZCBKnB1TZpuj3yi9NgUtUGAfrmhbj3N6DS-5=ssg@mail.gmail.com>

Sure, but in a Makefile, you should be in Makefile mode (Major mode for editing Makefiles), and it inserts TAB characters....

Cheers,

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 10:05 AM
To: help-gnu-emacs@gnu.org
Subject: Re: tab character

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 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?




  reply	other threads:[~2011-10-27 15:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27 13:45 tab character Rustom Mody
2011-10-27 14:31 ` Ludwig, Mark
2011-10-27 15:05   ` Rustom Mody
2011-10-27 15:13     ` Ludwig, Mark [this message]
2011-10-27 20:23     ` Andreas Röhler
     [not found]   ` <mailman.1178.1319727924.15868.help-gnu-emacs@gnu.org>
2011-10-27 15:18     ` Pascal J. Bourguignon
  -- strict thread matches above, loose matches on Subject: below --
2011-10-27 22:27 Buchs, Kevin
     [not found] <mailman.1037819061.24117.help-gnu-emacs@gnu.org>
2002-11-22 21:56 ` TAB character Benjamin Rutt
2002-11-20 19:03 Stirling Olson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BC5672F8AD4C054BAF167C9801500D1A67231995@USSLMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rustompmody@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.