all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: August Karlstrom <fusionfive@comhem.se>
Subject: Filling Block Comment
Date: Fri, 17 Mar 2006 04:43:23 GMT	[thread overview]
Message-ID: <L7rSf.48608$d5.204834@newsb.telia.net> (raw)

Hi everyone,

With

(require 'newcomment)
(setq comment-start "/*")
(setq comment-end "*/")
(set (make-local-variable 'fill-paragraph-function) 		
'fill-comment-paragraph)

the block comment

/* xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz */

is filled as (something like)

/* xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz
/* xyz xyz xyz */

instead of

/* xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz
xyz xyz xyz */

How do I make `fill-comment-paragraph' work with block comments?


August

-- 
I am the "ILOVEGNU" signature virus. Just copy me to your
signature.  This email was infected under the terms of the GNU
General Public License.

             reply	other threads:[~2006-03-17  4:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17  4:43 August Karlstrom [this message]
2006-03-17 19:16 ` Filling Block Comment Andreas Röhler
2006-03-18 23:42   ` August Karlstrom
2006-03-19 20:06     ` Andreas Röhler
2006-03-28 23:37       ` August Karlstrom
2006-03-21 16:53 ` Stefan Monnier
2006-03-28 17:52   ` August Karlstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='L7rSf.48608$d5.204834@newsb.telia.net' \
    --to=fusionfive@comhem.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.