From: "Robert Thorpe" <rthorpe@realworldtech.com>
Subject: Re: tab-always-indent doesn't work
Date: 12 Dec 2006 05:50:15 -0800 [thread overview]
Message-ID: <1165931411.995106.201550@n67g2000cwd.googlegroups.com> (raw)
In-Reply-To: <ell5va$ofk$1@news.yaako.com>
Ronald wrote:
> I can't add comment in c files as below (comment can't be aligned using tab)
>
> for(;;){
> int i; //a
> int iii; //b
> }
What tab-always-indent's documentation says is:-
*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 insert a `real' tab
character.
So if you set it to t then hitting tab will indent the current line.
So, pressing tab at then end of "int i;" will not do anything if the
current line is already indented. If it is set to nil then only when
the cursor is in the left margin will tab "indent", otherwise it will
deliver a real tab.
HOWEVER...
Program modes do not use tab-always-indent, they have their own
variables...
c-tab-always-indent
perl-tab-always-indent
fortran-tab-mode-default
Some even, like lisp-mode, have no equivalent variable.
You must set these variables separately.
(I think that tab-always-indent's documentation is unclear and needs
fixing)
next prev parent reply other threads:[~2006-12-12 13:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-12 2:59 tab-always-indent doesn't work Ronald
2006-12-12 13:36 ` c-tab-always-indent works Ronald
2006-12-12 13:50 ` Robert Thorpe [this message]
2006-12-18 17:49 ` tab-always-indent doesn't work Robert Thorpe
2006-12-13 14:33 ` Yshaolin
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=1165931411.995106.201550@n67g2000cwd.googlegroups.com \
--to=rthorpe@realworldtech.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.