From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeff Clough Newsgroups: gmane.emacs.help Subject: Re: Comments always aligned at column 67 despite comment-column set otherwise Date: Tue, 23 Mar 2010 17:31:45 -0400 Message-ID: References: <28000835.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269379960 23594 80.91.229.12 (23 Mar 2010 21:32:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Mar 2010 21:32:40 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 23 22:32:34 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuBiD-0007ld-HP for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Mar 2010 22:32:33 +0100 Original-Received: from localhost ([127.0.0.1]:50022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuBiC-0001wd-RH for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Mar 2010 17:32:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuBeE-0000Q8-SI for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 17:28:26 -0400 Original-Received: from [140.186.70.92] (port=40776 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuBeC-0000Og-Eo for Help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 17:28:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuBeA-0001mL-7a for Help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 17:28:24 -0400 Original-Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:65085) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuBeA-0001mH-4V for Help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 17:28:22 -0400 X-Authority-Analysis: v=1.1 cv=wckZLekju2+u3kt9osT+oU4XGSlOYx61urhSnO42l8s= c=1 sm=0 a=gX-oM8fZfGYA:10 a=kj9zAlcOel0A:10 a=wN3dDBks/ChO7xvezkoALQ==:17 a=_EWck3YoN9pfmRhS0ToA:9 a=C4CqahmU0dwKxgGMZQQA:7 a=f69oaxptPA9HtDCRUdMEXX_QlmkA:4 a=CjuIK1q_8ugA:10 a=o6iBS5-FBLpCW5Hn:21 a=lD8_ricqwI67Hx75:21 a=wN3dDBks/ChO7xvezkoALQ==:117 X-Cloudmark-Score: 0 X-Originating-IP: 74.70.71.134 Original-Received: from [74.70.71.134] ([74.70.71.134:40288] helo=logrus.localdomain) by hrndva-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id 8F/4F-23585-47239AB4; Tue, 23 Mar 2010 21:28:20 +0000 In-Reply-To: <28000835.post@talk.nabble.com> (eric powell's message of "Tue, 23 Mar 2010 06:34:56 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:72465 Archived-At: eric_powell writes: > All I would like to be able to do is set the comment column and then when I > press M-;, for a comment to appear at that column. I am trying to do this > by setting the variable set-comment-column. Seems simple enough, but no > matter where I set this value, the comment always appears at column 67. The variable is actually named "comment-column". You can test and/or play around with it by doing a M-: and typing (setq comment-column n) Where n is the column number. It should make M-; work as expected. Once you find a number that works for you, you'll probably need to use customize in order to make it permanent (it's buffer local). You can most easily do that by doing describe-variable on comment-column with C-h v, then clicking the "customize" link near the bottom of the help. > Furthermore, the M-; command is supposed to also realign existing comments, > but in that case, it moves the comments to a completely different column > (neither 67 nor what I set it to). This also works with comment-column set as I noted above. > This problem is absolutely driving me crazy. Please someone help. > > I am mostly using emacs for c++ code, which I think is using cc-mode with > the gnu style, but it would be nice if I could configure this behavior also > for perl and bash code. It should. Jeff