From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yohann Pitrey Newsgroups: gmane.emacs.help,gmane.emacs.devel Subject: Re: paragraph fill and wrong number of arguments Date: Tue, 24 Apr 2007 11:17:18 +0200 Message-ID: <462DCB1E.30400@gmail.com> References: <462A000A.5060803@gmail.com> <87d51xa9ho.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1177406218 995 80.91.229.12 (24 Apr 2007 09:16:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2007 09:16:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Emacs-devel@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 24 11:16:55 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HgH8o-0000wY-Aa for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Apr 2007 11:16:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgHEI-0003JM-MO for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Apr 2007 05:22:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HgHE6-0003JH-1x for help-gnu-emacs@gnu.org; Tue, 24 Apr 2007 05:22:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HgHE3-0003Is-Ic for help-gnu-emacs@gnu.org; Tue, 24 Apr 2007 05:22:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgHE3-0003Ii-CJ for help-gnu-emacs@gnu.org; Tue, 24 Apr 2007 05:22:19 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HgH8Y-0004oz-53 for help-gnu-emacs@gnu.org; Tue, 24 Apr 2007 05:16:38 -0400 Original-Received: by ug-out-1314.google.com with SMTP id j3so132714ugf for ; Tue, 24 Apr 2007 02:16:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=MshG4IJm5PZAvQmAeH8jA99YEBHBB8nc3JDMVt3ZWyqwNKdIQw5ahSsuFkO7oQNSAVCzAPRJ26hW0de3pNIbVLPd51gCJkn7RDQ4nwS9AFNC3nq5XakXm5OIk5p9oa1/c36EtIg9H7Urk6FWwNV6NEN1fWFd/IY0j8b3kG07fGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=OmkfVbJ0EJKvXtmrhCY9n0pZYMFAlgW++TgPz+pftQTtrLFHZtkljifRY48n5HF214PEUTDVvOxqLr+f9/Fho0Q0/uU20AYObh7HQ6fYmVyK4Dk2SX72BYwGcoTHZ4/5Se+Js3gj616YH4FZ5DS76Hosiam1on5qUj/g0/pb+RA= Original-Received: by 10.66.219.11 with SMTP id r11mr472408ugg.1177406196712; Tue, 24 Apr 2007 02:16:36 -0700 (PDT) Original-Received: from ?10.1.25.2? ( [193.52.94.40]) by mx.google.com with ESMTP id m1sm157900ugc.2007.04.24.02.16.35; Tue, 24 Apr 2007 02:16:35 -0700 (PDT) User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <87d51xa9ho.fsf@debby.local.net> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43051 gmane.emacs.devel:69912 Archived-At: For information, I finally made it : (defun justify () (interactive) (save-excursion (backward-paragraph -1) (setq from (point)) (forward-paragraph -1) (setq to (point)) (fill-region-as-paragraph from to) ) ) thanks all for your help! Yohann. Dieter Wilhelm a écrit : > Yohann Pitrey writes: > >> I have been trying to write a function to fill a paragraph using : >> >> >> (defun justify () >> (interactive) >> (mark-paragraph) >> (fill-region-as-paragraph (region-beginning) (region-end)) >> ) >> >> "justify: Wrong number of arguments: #[nil "ÀÁ!ˆÂÃĉ#ˆÅÁ!‡" >> [forward-paragraph 1 push-mark nil t backward-paragraph] 4 1287337 >> nil], 1" > > not so for me, have you re-evaluated your latest definition? > > Bye the way, why don't you use M-q (fill-paragraph)? >