From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.devel Subject: Re: Multiple bugs in lisp-mode M-q on paragraphs within #|..|# comments Date: Sun, 25 Mar 2007 10:13:16 -0400 Message-ID: <17926.33660.189148.964115@rgrjr.dyndns.org> References: <17925.31957.782297.513252@rgrjr.dyndns.org> <87lkhmflwk.fsf@stupidchicken.com> <17925.37199.346999.399423@rgrjr.dyndns.org> <4605A120.6030400@gmx.at> <17925.49428.760951.346087@rgrjr.dyndns.org> <46064C69.1010807@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174844512 22582 80.91.229.12 (25 Mar 2007 17:41:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2007 17:41:52 +0000 (UTC) Cc: emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 25 19:41:46 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 1HVWip-0006la-0Y for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2007 19:41:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVWkt-00020A-K8 for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2007 12:43:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVTWL-0001j4-Qw for emacs-devel@gnu.org; Sun, 25 Mar 2007 10:16:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVTW8-0001cm-6S for emacs-devel@gnu.org; Sun, 25 Mar 2007 10:16:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVTW8-0001cf-1H for emacs-devel@gnu.org; Sun, 25 Mar 2007 09:16:20 -0500 Original-Received: from c-24-34-111-252.hsd1.ma.comcast.net ([24.34.111.252] helo=rgrjr.dyndns.org) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HVTTm-0006FE-6m for emacs-devel@gnu.org; Sun, 25 Mar 2007 10:14:06 -0400 Original-Received: (qmail 12697 invoked by uid 500); 25 Mar 2007 14:13:16 -0000 In-Reply-To: <46064C69.1010807@gmx.at> X-Mailer: VM 7.19 under Emacs 22.0.96.1 X-detected-kernel: Linux 2.4-2.6 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:68530 Archived-At: From: martin rudalics Date: Sun, 25 Mar 2007 12:18:17 +0200 . . . > It might be better to recognize Lisp "#|...|#" comments explicitly at > a point where we know we're dealing with Lisp. The attached patch is a > total hack, but it seems to relieve the symptoms of the first three bugs > (and changes that of the fourth). This style of comment can be nested, > so the hack will get confused if still inside a comment but after an > inner comment. The changed symptoms of the fourth bug suggest that the > bounds passed to the fill-region-as-paragraph call are wrong. But I'll > bet someone else can do better. I'm afraid this problem is not restricted to the Lisp case . . . Anyway please try the attached patch. I'm confident Stefan will find a better solution soon. It corrects all four syndromes for me; thanks. (In my ignorance, I had tried rebinding comment-end, but around a fill-comment-paragraph call, which did nothing.) -- Bob