help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie to Emacs-Lisp: Using the fill-paragraph function


From: Eli Zaretskii
Subject: Re: Newbie to Emacs-Lisp: Using the fill-paragraph function
Date: Wed, 25 Apr 2007 00:28:12 +0300

> Date: Tue, 24 Apr 2007 14:20:36 -0700
> From: "Taylor Jones" <taylor.jones@gmail.com>
> 
>     (if (> (length return) 0)
>     (progn
>      (insert " *\n")
>      (insert " * @return ")
>      (insert return)
>      (insert "\n")
>      (fill-paragraph))
>     )
> 
> As you can see, after I insert the " * @return <description of return
> value>" I want to use the fill-paragraph function, just as I would do if I
> were manually typing the line and using the M-q keybinding. When the
> fill-parargraph function runs, I get an error message "wrong number of
> arguments" and a bunch of gibberish.

Did you see in "C-h f" that fill-parargraph requires an argument?  You
need to supply it, otherwise Emacs will rightfully complain.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]