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

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

Re: Fill all comments in a buffer?


From: Emanuel Berg
Subject: Re: Fill all comments in a buffer?
Date: Tue, 03 Oct 2017 06:12:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

YT wrote:

> (defun fill-all-comments ()
>   (interactive)
>   (goto-char (point-min))
>   (while (search-forward-regexp "^;;" (point-max) t) ; NOERROR
>     (let ((start (point)))
>       (fill-comment-paragraph) )))

Wait, what does the 5th line do?

Try

    (defun fill-all-comments ()
      (interactive)
      (goto-char (point-min))
      (while (search-forward-regexp "^;;" (point-max) t) ; NOERROR
        (fill-comment-paragraph) ))

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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