From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ragweed Newsgroups: gmane.emacs.help Subject: problems with c-fill-paragraph, c++ comments in c modules Date: Mon, 23 Aug 2010 15:06:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291930064 5961 80.91.229.12 (9 Dec 2010 21:27:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 21:27:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 22:27:39 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 1PQo1X-000842-Qn for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 22:27:36 +0100 Original-Received: from localhost ([127.0.0.1]:60706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQo1W-0004Xl-GJ for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 16:27:34 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!k17g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 173.50.141.18 Original-X-Trace: posting.google.com 1282601204 13085 127.0.0.1 (23 Aug 2010 22:06:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 23 Aug 2010 22:06:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k17g2000prf.googlegroups.com; posting-host=173.50.141.18; posting-account=tl_yOQoAAAAgLalWUBrxP20Qm5c5bLAb User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100624 CentOS/3.6-8.el5.centos Firefox/3.6.4 GTB6,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:180908 X-Mailman-Approved-At: Thu, 09 Dec 2010 16:13:18 -0500 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:77084 Archived-At: I've recently built Emacs 23.2.1 on a linux box and it doesn't behave the same as the Emacs 21.4.1 on the same host with respect to c++ comments in a c file. I can't figure out how to get Emacs 23.2.1 to run c-fill-paragraph properly for c++-style comments when they're in a c file. Consider the following long c++ style comment in a file named test.c: >// The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. If I run c-fill-paragraph with the cursor on that line, Emacs 21.4.1 converts it to what I want: >// The quick brown fox jumps over the lazy dog. The quick brown fox jumps over >// the lazy dog. The quick brown fox jumps over the lazy dog. If I run c-fill-paragraph in 23.2.1, I get: // The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. That is, it wraps the comment to the next line but doesn't prefix the next line with the comment prefix. If I rename the file to test.cpp, then emacs 23.2.1 DOES prefix the line. I renamed my .emacs file so that both versions of Emacs use their default settings and ignore my normal customizations.