home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Mon, 14 Dec 1992 15:30:41 EST
- Return-Path: <guttman@linus.mitre.org>
- Posted-Date: Mon, 14 Dec 92 15:30:21 -0500
- Date: Mon, 14 Dec 1992 15:30:21 -0500
- From: guttman@linus.mitre.org
- Message-ID: <9212142030.AA02572@circe.mitre.org>
- Subject: Re: Filling commented paragraphs
- X-Postal-Address: MITRE, Mail Stop A156 \\ 202 Burlington Rd. \\ Bedford, MA 01730
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 17
-
- I use the procedure enclosed, bound to the key M-C-g.
-
- Josh
-
- (defun fill-commented-paragraph ()
- "Fill current paragraph ignoring comment-chars and whitespace."
- (interactive)
- (save-excursion
- (beginning-of-line)
- (let* ((line-start (point))
- (fill-prefix
- (progn
- (while (looking-at "\\s<\\|\\s ")
- (forward-char 1))
- (buffer-substring line-start (point)))))
- (fill-paragraph nil))))
-
-