From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: commentting problem when coding in c Date: Mon, 11 Dec 2006 08:42:18 -0500 Message-ID: <457eb084$1@news.greennet.net> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165848031 4177 80.91.229.10 (11 Dec 2006 14:40:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 14:40:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 11 15:40:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GtmKN-0004fL-Hy for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 15:40:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtmKN-0006C3-0e for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 09:40:23 -0500 User-Agent: Mozilla/5.0 (X11; U; AIX 000C89FF4C00; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-NNTP-Posting-Host: 192.91.197.52 X-Original-NNTP-Posting-Host: 192.91.197.52 Original-X-Trace: 12 Dec 2006 08:37:08 -0500, 192.91.197.52 Original-Lines: 26 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!feedme.ziplink.net!news.greennet.net!192.91.197.52 Original-Xref: shelby.stanford.edu gnu.emacs.help:143819 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39422 Archived-At: 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.