From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: fill docstring (Re: new *Help* argument highlighting) Date: Thu, 13 May 2004 08:28:44 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405122328.IAA12697@etlken.m17n.org> References: <20040512133037.FB60.JMBARRANQUERO@wke.es> <200405121301.WAA11314@etlken.m17n.org> <20040512150550.FB66.JMBARRANQUERO@wke.es> <20040512140625.GA20095@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1084404815 32183 80.91.224.253 (12 May 2004 23:33:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 May 2004 23:33:35 +0000 (UTC) Cc: jmbarranquero@wke.es, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 13 01:33:26 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BO3E6-0006HB-00 for ; Thu, 13 May 2004 01:33:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BO3E5-0002l7-00 for ; Thu, 13 May 2004 01:33:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BO3Bb-0000ap-25 for emacs-devel@quimby.gnus.org; Wed, 12 May 2004 19:30:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BO3AB-0000Nf-Jq for emacs-devel@gnu.org; Wed, 12 May 2004 19:29:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BO39c-0000Jm-6M for emacs-devel@gnu.org; Wed, 12 May 2004 19:29:21 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BO39b-0000Je-9Z; Wed, 12 May 2004 19:28:47 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/8.11.6) with ESMTP id i4CNSjP16174; Thu, 13 May 2004 08:28:45 +0900 (JST) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6p2/8.11.6) with ESMTP id i4CNSi906983; Thu, 13 May 2004 08:28:44 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id IAA12697; Thu, 13 May 2004 08:28:44 +0900 (JST) Original-To: miles@gnu.org In-reply-to: <20040512140625.GA20095@fencepost> (message from Miles Bader on Wed, 12 May 2004 10:06:25 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23286 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23286 In article <20040512140625.GA20095@fencepost>, Miles Bader writes: > On Wed, May 12, 2004 at 03:15:01PM +0200, Juanma Barranquero wrote: >> > What do you mean? The first `sentence' should never be >> > broken into multiple lines. So only the meaningful "fix" >> > for fill is to make it recognize the emacs-lisp docstrings >> > and keep the first line untouched. > It already does that. Wow! I didn't know that. But, it seems that there's a bug. When I move point in the following docstring and type M-q: (defun temp () "This is a fairly long first line of a function documentation string." nil) the result is: (defun temp () "This is a fairly long first line of a function documentation string." nil) Another test: (defun temp () "This is a short documentation string." nil) is filled as: (defun temp () "This is a short documentation string." nil) If the docstring is more than two lines, it works as expected. So, perhaps, I should not try to fill a single line docstring which is anyway a nonsense thing. But I found another problem. (defun temp () (interactive) "This is a fairly long long long long first line of an embedded Lisp string. The second line." ) The string part is not filled, perhaps because it is detected as a docstring? --- Ken'ichi HANDA handa@m17n.org