From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.bugs Subject: [21.3 patch] make fill-paragraph ARG optional Date: Wed, 20 Oct 2004 18:42:16 +0300 Organization: Elisa Internet customer Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098287111 30663 80.91.229.6 (20 Oct 2004 15:45:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2004 15:45:11 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 20 17:44:57 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CKIe0-0001vv-00 for ; Wed, 20 Oct 2004 17:44:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKIlO-0008P0-Q5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Oct 2004 11:52:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CKIlG-0008K4-0D for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2004 11:52:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CKIlF-0008Jk-6Q for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2004 11:52:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKIlE-0008JE-Uo for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2004 11:52:24 -0400 Original-Received: from [132.239.1.53] (helo=mailbox1.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CKIc7-0007Hw-UH for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2004 11:43:00 -0400 Received-SPF: Received-SPF: none (mailbox1.ucsd.edu: domain news@phys-news1.kolumbus.fi does not list relay hosts) Original-Received: from smtp33.kolumbus.fi (smtp33.kolumbus.fi [193.229.0.33]) by mailbox1.ucsd.edu (8.13.1/8.13.1) with ESMTP id i9KFgoR2022680 for ; Wed, 20 Oct 2004 08:42:52 -0700 (PDT) Original-Received: from news.kolumbus.fi (news.kolumbus.fi [193.229.0.31]) by smtp33.kolumbus.fi (8.12.10/8.12.4) with ESMTP id i9KFgkbL001221 for ; Wed, 20 Oct 2004 18:42:47 +0300 (EEST) Original-Received: (from news@localhost) by news.kolumbus.fi (8.11.6+Sun/8.11.6) id i9KFgkr25740 for gnu-emacs-bug@moderators.isc.org; Wed, 20 Oct 2004 18:42:46 +0300 (EEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 22 Original-NNTP-Posting-Host: a81-197-3-110.elisa-laajakaista.fi Original-X-Trace: phys-news1.kolumbus.fi 1098286965 23497 81.197.3.110 (20 Oct 2004 15:42:45 GMT) Original-X-Complaints-To: abuse@kolumbus.fi Original-NNTP-Posting-Date: Wed, 20 Oct 2004 15:42:45 +0000 (UTC) User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:wl1CXzZDaQ30VGM3lQyQEfVcfk4= X-Spamscanner: mailbox1.ucsd.edu (v1.5 Aug 25 2004 09:28:35, -0.0/5.0 3.0.0) X-MailScanner: PASSED (v1.2.8 12661 i9KFgoR2022680 mailbox1.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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 Xref: main.gmane.org gmane.emacs.bugs:9385 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9385 The ARG is not required to contain a value, so I think the &optional would be better. Jari 2004-10-20 Wed Jari Aalto * textmodes/fill.el (fill-paragraph): Made ARG optional. --- fill.el.orig 2004-10-20 18:38:00.000000000 +0300 +++ fill.el 2004-10-20 18:38:12.000000000 +0300 @@ -693,7 +693,7 @@ (looking-at (regexp-quote prefix)))) (goto-char (match-end 0)))) -(defun fill-paragraph (arg) +(defun fill-paragraph (&optional arg) "Fill paragraph at or after point. Prefix ARG means justify as well. If `sentence-end-double-space' is non-nil, then period followed by one space does not end a sentence, so don't break a line there.