From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: Comment confusion Date: Tue, 29 Jun 2010 09:08:18 +0200 Message-ID: <4C299BE2.7070604@easy-emacs.de> References: <4C23F94C.3000400@no8wireless.co.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277795176 6391 80.91.229.12 (29 Jun 2010 07:06:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2010 07:06:16 +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 Jun 29 09:06:14 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 1OTUtZ-0002Ar-CV for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2010 09:06:13 +0200 Original-Received: from localhost ([127.0.0.1]:55353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTUtY-0000lX-PS for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2010 03:06:12 -0400 Original-Received: from [140.186.70.92] (port=40980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTUsT-0000iU-P3 for help-gnu-emacs@gnu.org; Tue, 29 Jun 2010 03:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTUsS-00059r-1D for help-gnu-emacs@gnu.org; Tue, 29 Jun 2010 03:05:05 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:57082) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTUsR-00059A-Li for help-gnu-emacs@gnu.org; Tue, 29 Jun 2010 03:05:04 -0400 Original-Received: from [192.168.178.27] (p5DDB150F.dip0.t-ipconnect.de [93.219.21.15]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MLA5x-1OTDlC39CD-000JGQ; Tue, 29 Jun 2010 09:05:00 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: <4C23F94C.3000400@no8wireless.co.nz> X-Provags-ID: V01U2FsdGVkX19ujgA9QW0o7/4e+du98uLV98QPrP/TzTmnvXA tKVGR2f8fQ6zDqBOwHAlAOSFi5CxpQiJZdviWheRInyW0muXAu IlNJqfZ0WvSKYVQOiA4yaFXshR4CI9Ch7hK9LsxTaY= 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:74004 Archived-At: Hi Aidan, AFAIS it's in cc-cmds.el, c-mask-paragraph Looks like a need for rewriting comment-span-functions Regards, Andreas -- https://code.launchpad.net/~a-roehler/python-mode https://code.launchpad.net/s-x-emacs-werkstatt/ Am 25.06.2010 02:33, schrieb Aidan Gauland: > Hello, > > I have been using Emacs and CC-Mode for quite some time now, and I > have just started to play with the D programming language. I found a > (unofficial) D-mode for Emacs and installed it, but, alas, I ran into > a very annoying bug immediately: it doesn't wrap D-style (/+ +/ > instead of /* */) properly. Now I know that this is not done by > CC-Mode itself, but it does seem to me to do something to allow > fill-paragraph to wrap it relative to the column of stars (for C-style > comments) like so... > > /* > * Normally it is desirable for page boundaries to separate > paragraphs. The default values of these variables recognize the usual > separator for pages. > */ > > M-q > > /* > * Normally it is desirable for page boundaries to separate > * paragraphs. The default values of these variables recognize the > * usual separator for pages. > */ > > But in D-mode, D-style comments are not "filled" correctly. > > /+ > + Normally it is desirable for page boundaries to separate > paragraphs. The default values of these variables recognize the usual > separator for pages. > +/ > > M-q > > /+ + Normally it is desirable for page boundaries to separate > paragraphs. The default values of these variables recognize the > usual separator for pages. > +/ > > Or worse... > > /+ > + Normally it is desirable for page boundaries to separate > + paragraphs. The default values of these variables recognize the > + usual separator for pages. > +/ > > M-q > > /+ + Normally it is desirable for page boundaries to separate + > paragraphs. The default values of these variables recognize the + > usual separator for pages. > +/ > > I've dug through the Emacs manual, the code for D-mode, and asked for > help on IRC (#emacs on freenode), but to no avail. I figure this is > the best place to turn to, as my problem is very specific to CC-Mode. > D-mode is based on CC-Mode and seems to treat D-style comments > properly in every other respect. (I have attached the code for D-mode > as "d-mode.el".) > > Thanks, > Aidan Gauland > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo