unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ken Goldman <kgold@watson.ibm.com>
Subject: Re: commentting problem when coding in c
Date: Mon, 11 Dec 2006 08:42:18 -0500	[thread overview]
Message-ID: <457eb084$1@news.greennet.net> (raw)
In-Reply-To: <el6ee7$ne7$1@news.yaako.com>

Ronald wrote:
> For example:
> 
> for () {                       //comment a
>         int i=0;               //comment b
> }
> 
> but in emacs, I can't use tab to indent the comment, and the code will like:
> for () {//comment a
>         int i=0;//comment b
> }
> 
> Howerver, C-q [tab] works, but it is not convenient. So does spaces.
> 
> Is there any more convenient way? 

tab-always-indent's value is t

Documentation:
*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.

What's strange is that, for me, the variable is t, but
I'm getting the nil behavior I think you want.

  parent reply	other threads:[~2006-12-11 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-06 12:52 commentting problem when coding in c Ronald
2006-12-06 13:03 ` Rud1ger Sch1erz
2006-12-06 13:40   ` Ronald
2006-12-11 13:42 ` Ken Goldman [this message]
2006-12-11 14:56 ` Robert Thorpe

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='457eb084$1@news.greennet.net' \
    --to=kgold@watson.ibm.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).