all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: xubio1@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Leading * prefix in c mode comments doesn't work well
Date: 14 May 2007 17:27:44 -0700	[thread overview]
Message-ID: <1179188864.043181.270230@e65g2000hsc.googlegroups.com> (raw)

I am trying to get c-mode block comments to automatically insert
leading '* ' in each line in a block comment.  I tried setting c-block-
comment-prefix to '* ', and this works to auto-insert the prefix on
the second line of a comment block but only if the the newline is auto-
inserted.  If I use a manual return (which for me is bound to newline-
and-indent), the prefix is not inserted.  And all subsequent lines of
the block comment do not receive the prefix, whether from auto-fill or
by manual newline-and-indent.  c-comment-prefix-regexp is set to:
((pike-mode . "//+!?\\|\\**")
 (other . "//+\\|\\**"))

I'm using GNU Emacs 21.3.1 with C Mode 5.28.

Surely I must be doing something wrong, because Emacs and C-mode are
too perfect to not be able to do this.

                 reply	other threads:[~2007-05-15  0:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1179188864.043181.270230@e65g2000hsc.googlegroups.com \
    --to=xubio1@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.