From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: Fill for // style comments in C Date: Mon, 27 Nov 2006 15:44:52 +0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164613519 25000 80.91.229.2 (27 Nov 2006 07:45:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2006 07:45:19 +0000 (UTC) Cc: bug-cc-mode@gnu.org, lennart.borgman.073@student.lu.se, rms@gnu.org, emacs-devel@gnu.org Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Mon Nov 27 08:45:13 2006 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GobAr-0006fY-42 for sf-cc-mode-help@m.gmane.org; Mon, 27 Nov 2006 08:45:09 +0100 Original-Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id 68389126B1; Sun, 26 Nov 2006 23:45:08 -0800 (PST) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1GobAo-0008Sd-I1 for cc-mode-help@lists.sourceforge.net; Sun, 26 Nov 2006 23:45:06 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1GobAn-0008LT-F6 for cc-mode-help@lists.sourceforge.net; Sun, 26 Nov 2006 23:45:06 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.52) id 1GobAj-0004fK-OK for bug-cc-mode@gnu.org; Mon, 27 Nov 2006 02:45:01 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.52) id 1GobAi-00066C-7t for bug-cc-mode@gnu.org; Mon, 27 Nov 2006 02:45:01 -0500 Original-Received: from [65.54.246.211] (helo=bay0-omc3-s11.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GobAf-00065M-Pj; Mon, 27 Nov 2006 02:44:58 -0500 Original-Received: from hotmail.com ([64.4.26.12]) by bay0-omc3-s11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 26 Nov 2006 23:44:56 -0800 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 26 Nov 2006 23:44:55 -0800 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Mon, 27 Nov 2006 07:44:52 GMT X-Originating-IP: [202.165.107.100] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: miles@gnu.org, monnier@iro.umontreal.ca X-OriginalArrivalTime: 27 Nov 2006 07:44:55.0848 (UTC) FILETIME=[EE735A80:01C711F7] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on monty-python X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=MSGID_FROM_MTA_HEADER autolearn=failed version=3.0.4 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:4113 gmane.emacs.devel:62842 Archived-At: And in c-mode, pressing M-q in between comments like this: // A real long comment that will cause the fill command in Emacs C mode making mistakes. will get // A real long comment that will cause the fill command in Emacs C mode making mistakes. But for /* */ style comment, it will be /* A real long comment that will cause the fill command in Emacs C mode making mistakes. */ And in c++-mode, // A real long comment that will cause the fill command in Emacs C mode making mistakes. will be changed to // A real long comment that will cause the fill command in Emacs C // mode making mistakes. when pressing M-q. Regards, Guanpeng Xu >From: Miles Bader >Reply-To: Miles Bader >To: Stefan Monnier >CC: bug-cc-mode@gnu.org, lennart.borgman.073@student.lu.se, >rms@gnu.org,emacs-devel@gnu.org >Subject: Re: Fill for // style comments in C >Date: Mon, 27 Nov 2006 15:34:28 +0900 > >Stefan Monnier writes: > >> C mode does support // comments in other ways, so if it doesn't > >> enable filling of them, I think that is a bug. > > > > I still haven't seen any clear report that it doesn't work (just some >vague > > remarks about whether or not it works). > >Consider the following in c-mode (with indentation removed): > > // this is a test > // foo bar > int a () > { > } > >If you position the point on the word "test", and hit M-q (bound to >`c-fill-paragraph'), nothing happens. > >If you then do `M-x c++-mode', and hit M-q again, the comment is filled >as you might expect. > >_However_ if you use `M-x fill-paragraph' instead of M-q >(c-fill-paragraph), then it works correctly in both modes -- so it >appears that the bug is with c-fill-paragraph. > >-Miles > >-- >I'm beginning to think that life is just one long Yoko Ono album; no rhyme >or reason, just a lot of incoherent shrieks and then it's over. --Ian >Wolff > > >_______________________________________________ >Emacs-devel mailing list >Emacs-devel@gnu.org >http://lists.gnu.org/mailman/listinfo/emacs-devel _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV