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: Multiple bugs in lisp-mode M-q on paragraphs within #|..|# comments Date: Tue, 27 Mar 2007 22:57:15 -0400 Message-ID: References: <17925.31957.782297.513252@rgrjr.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175050650 18376 80.91.229.12 (28 Mar 2007 02:57:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 02:57:30 +0000 (UTC) Cc: emacs-devel To: Bob Rogers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 28 04:57:24 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 1HWOLj-0004Zh-Kn for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2007 04:57:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWOO9-00035L-A4 for ged-emacs-devel@m.gmane.org; Tue, 27 Mar 2007 21:59:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWOO5-000326-B9 for emacs-devel@gnu.org; Tue, 27 Mar 2007 22:59:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWOO3-00031s-CV for emacs-devel@gnu.org; Tue, 27 Mar 2007 22:59:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWOO3-00031p-6R for emacs-devel@gnu.org; Tue, 27 Mar 2007 21:59:47 -0500 Original-Received: from bc.sympatico.ca ([209.226.175.184] helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWOLc-0003bP-JP for emacs-devel@gnu.org; Tue, 27 Mar 2007 22:57:16 -0400 Original-Received: from pastel.home ([70.55.83.113]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070328025715.MYSN1767.tomts22-srv.bellnexxia.net@pastel.home> for ; Tue, 27 Mar 2007 22:57:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 63C5A80FA; Tue, 27 Mar 2007 22:57:15 -0400 (EDT) In-Reply-To: <17925.31957.782297.513252@rgrjr.dyndns.org> (Bob Rogers's message of "Sat\, 24 Mar 2007 15\:32\:37 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:68695 Archived-At: > I found three such bugs. To reproduce: Does the patch below help? Stefan *** newcomment.el 29 jan 2007 13:35:18 -0500 1.100 --- newcomment.el 27 mar 2007 22:56:20 -0400 *************** *** 391,397 **** pt (or limit (point-max)) nil nil (list nil nil nil (nth 3 s) nil nil nil nil) t))) ! (if (not (and (nth 8 s) (not (nth 3 s)))) (unless noerror (error "No comment")) ;; We found the comment. (let ((pos (point)) --- 391,399 ---- pt (or limit (point-max)) nil nil (list nil nil nil (nth 3 s) nil nil nil nil) t))) ! (if (or (not (and (nth 8 s) (not (nth 3 s)))) ! ;; Make sure the comment starts after PT. ! (< (nth 8 s) pt)) (unless noerror (error "No comment")) ;; We found the comment. (let ((pos (point))