From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: fortran-fill-paragraph fails Date: Sun, 07 Jan 2007 15:12:10 -0500 Message-ID: References: <87d56acfod.fsf@lrde.org> <17810.43383.385509.776556@tfkp07.physik.uni-erlangen.de> <87ejqhwnhu.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168200808 26438 80.91.229.12 (7 Jan 2007 20:13:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2007 20:13:28 +0000 (UTC) Cc: emacs-devel@gnu.org, michael@cadilhac.name, Roland.Winkler@physik.uni-erlangen.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 07 21:13:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H3eOA-0007Jm-5u for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2007 21:13:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3eO8-0008IT-8a for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2007 15:13:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3eNs-0008I3-Mk for emacs-devel@gnu.org; Sun, 07 Jan 2007 15:12:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3eNn-0008Eo-Sn for emacs-devel@gnu.org; Sun, 07 Jan 2007 15:12:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3eNn-0008Ei-NR for emacs-devel@gnu.org; Sun, 07 Jan 2007 15:12:43 -0500 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3eNR-00078W-CM; Sun, 07 Jan 2007 15:12:22 -0500 Original-Received: from pastel.home ([74.12.206.167]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070107201210.GNXJ1773.tomts13-srv.bellnexxia.net@pastel.home>; Sun, 7 Jan 2007 15:12:10 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 6EC4F6C288; Sun, 7 Jan 2007 15:12:10 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed\, 03 Jan 2007 16\:11\:12 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64930 Archived-At: > So if the comment starter used is ";;;" the regexp can just be > something like ";;;[^;]". But that's only for "typical" comment > markers. For Texinfo's "@c" we can't just use "@c[^c]" because "@ca" > is not a comment starter. And For Fortran we can't just use "C[^C]" > because the "C" is only a comment starter when it's at the beginning > of a line. > We heuristically try to discover whether it's a "typical" comment > starter by matching (concat "\0" comstart "a") against > comment-start-skip, which should correctly distinguish those two > special cases. > Could you make the comments explain this? Done, Stefan