unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: August Karlstrom <fusionfive@comhem.se>
Subject: Re: Filling Block Comment
Date: Sat, 18 Mar 2006 23:42:45 GMT	[thread overview]
Message-ID: <VV0Tf.48893$d5.205085@newsb.telia.net> (raw)
In-Reply-To: <dvf1nl$4jd$1@online.de>

Andreas Röhler wrote:
> August Karlstrom wrote:
>>With
>>
>>(require 'newcomment)
> 
>>(setq comment-start "/*")
>>(setq comment-end "*/")
> 
> Probably you don't need this explicit settings.
> 
> toggle c-mode

Well, the thing is I'm writing my own major mode for a C-like language.

> with active region and transient-mark-mode
> 
> call comment-dwim. It's at M-;

Yes, I know. The function `comment-dwim' (and `dabbrev-expand') is one 
of the most useful Emacs commands.

>>How do I make `fill-comment-paragraph' work with block
>>comments?
> 
> There is a var `comment-style' via customize, change that appropriatly.

I tried setting `comment-style' to `multi-line'

    (set (make-local-variable 'comment-style) 'multi-line)

but that doesn't solve the problem, block-comments are still filled as

    /* blah blah blah
    /* blah blah blah */

rather than

    /* blah blah blah
    blah blah blah */

> I'm just writing a func, which will allow you to switch between // and /* */.
> Send a mail, if you need that.

Thanks, but that is not what I'm looking for.


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-18 23:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17  4:43 Filling Block Comment August Karlstrom
2006-03-17 19:16 ` Andreas Röhler
2006-03-18 23:42   ` August Karlstrom [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='VV0Tf.48893$d5.205085@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).