|
From: | Yohann Pitrey |
Subject: | Re: paragraph fill and wrong number of arguments |
Date: | Tue, 24 Apr 2007 11:17:18 +0200 |
User-agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
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 <address@hidden> 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)?
[Prev in Thread] | Current Thread | [Next in Thread] |