all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Leading * prefix in c mode comments doesn't work well
@ 2007-05-15  0:27 xubio1
  0 siblings, 0 replies; only message in thread
From: xubio1 @ 2007-05-15  0:27 UTC (permalink / raw)
  To: help-gnu-emacs

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-15  0:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15  0:27 Leading * prefix in c mode comments doesn't work well xubio1

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.