From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: auto-fill-mode and docstring Date: Tue, 14 Sep 2004 10:07:37 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1095182389 8912 80.91.229.6 (14 Sep 2004 17:19:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2004 17:19:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 14 19:19:37 2004 Return-path: Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C7Gm1-0003xB-03 for ; Tue, 14 Sep 2004 19:07:21 +0200 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.12.11/8.12.11/GN) with ESMTP id i8EE85cv063601 for ; Tue, 14 Sep 2004 16:08:07 +0200 (CEST) (envelope-from emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7E47-0003E6-R4 for ged-emacs-devel@m.gmane.org; Tue, 14 Sep 2004 10:13:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7E40-0003E1-GS for emacs-devel@gnu.org; Tue, 14 Sep 2004 10:13:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7E3z-0003Dl-S7 for emacs-devel@gnu.org; Tue, 14 Sep 2004 10:13:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7E3z-0003Db-O8 for emacs-devel@gnu.org; Tue, 14 Sep 2004 10:13:43 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7Dy7-00060v-W6 for emacs-devel@gnu.org; Tue, 14 Sep 2004 10:07:40 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1C7Dy5-0006ko-0l; Tue, 14 Sep 2004 10:07:37 -0400 Original-To: bob@rattlesnake.com In-reply-to: (bob@rattlesnake.com) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27107 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27107 However, do-auto-fill does not call fill-paragraph-function. fill-paragraph-function functions are designed to be called from fill-paragraph, and they do what fill-paragraph needs. That's not the same thing that do-auto-fill needs, so I am not surprised that calling do-auto-fill there causes trouble. You can think of calling fill-paragraph-function as calling fill-paragraph. What you need to do, to arrange to get good results by calling fill-paragraph-function, is the same as what you need to do to get good results by calling fill-paragraph. So the right way to make do-auto-fill call fill-paragraph-function is to make it use fill-paragraph.