From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#7751: 24.0.50; `fill-paragraph' on doc string with colons Date: Fri, 17 Feb 2012 22:13:20 +0800 Message-ID: <87fwe935vj.fsf@gnu.org> References: <3F4673E9CCED46A0BD9BA6B9BDF5DF8D@us.oracle.com> <8762f5sjpb.fsf@ed.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329488064 7967 80.91.229.3 (17 Feb 2012 14:14:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Feb 2012 14:14:24 +0000 (UTC) Cc: 7751@debbugs.gnu.org To: Lawrence Mitchell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 17 15:14:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RyOZo-0005a2-Si for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2012 15:14:21 +0100 Original-Received: from localhost ([::1]:42524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyOZo-00039z-1c for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2012 09:14:20 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyOZf-00039V-TX for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 09:14:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyOZc-0006U8-S5 for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 09:14:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyOZc-0006TM-PE for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 09:14:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RyObS-00056r-5l for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 09:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Feb 2012 14:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7751-submit@debbugs.gnu.org id=B7751.132948812819312 (code B ref 7751); Fri, 17 Feb 2012 14:16:02 +0000 Original-Received: (at 7751) by debbugs.gnu.org; 17 Feb 2012 14:15:28 +0000 Original-Received: from localhost ([127.0.0.1]:43535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyOas-0004yR-3z for submit@debbugs.gnu.org; Fri, 17 Feb 2012 09:15:28 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:50190 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyOaq-0004vB-1k for 7751@debbugs.gnu.org; Fri, 17 Feb 2012 09:15:24 -0500 Original-Received: from bb121-6-68-155.singnet.com.sg ([121.6.68.155]:56359 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RyOYz-0002Xn-41; Fri, 17 Feb 2012 09:13:29 -0500 In-Reply-To: <8762f5sjpb.fsf@ed.ac.uk> (Lawrence Mitchell's message of "Fri, 17 Feb 2012 12:55:28 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56967 Archived-At: Lawrence Mitchell writes: >> The problem appears to be in the regexp used to define >> paragraph-start in lisp-fill-paragraph: > >> (let ((paragraph-start (concat paragraph-start >> "\\|\\s-*\\([(;:\"]\\|`(\\|#'(\\)")) > >> Removing the colon leads to "expected" line breaking. > > Would a patch to do this be welcome? As explained in the comments in that file, the colon is there so that forms like (defcustom foo nil :bar 3) Don't get refilled to (defcustom foo nil :bar 3) when you type M-q. The effect on docstrings containing colons is unfortunate, but simply removing the colon from the regexp would be incorrect.