From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: fortran-fill-paragraph fails Date: Wed, 03 Jan 2007 16:11:12 -0500 Message-ID: References: <87d56acfod.fsf@lrde.org> <17810.43383.385509.776556@tfkp07.physik.uni-erlangen.de> <87ejqhwnhu.fsf@lrde.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1167858825 32000 80.91.229.12 (3 Jan 2007 21:13:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2007 21:13:45 +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 Wed Jan 03 22:13:42 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 1H2DQa-00062t-9q for ged-emacs-devel@m.gmane.org; Wed, 03 Jan 2007 22:13:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2DQZ-00075k-Jy for ged-emacs-devel@m.gmane.org; Wed, 03 Jan 2007 16:13:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2DOa-00064t-Qd for emacs-devel@gnu.org; Wed, 03 Jan 2007 16:11:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2DOa-00064Z-F5 for emacs-devel@gnu.org; Wed, 03 Jan 2007 16:11:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2DOa-00064T-3v for emacs-devel@gnu.org; Wed, 03 Jan 2007 16:11:36 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2DOZ-0001Nn-U7 for emacs-devel@gnu.org; Wed, 03 Jan 2007 16:11:35 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1H2DOC-0003FP-2c; Wed, 03 Jan 2007 16:11:12 -0500 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Tue, 02 Jan 2007 18:22:57 -0500) 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:64710 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?