unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Le Wang <l26wang@gmail.com>
To: jkb0932 <jasonbauer36@yahoo.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Unable to specify format for code comments
Date: Tue, 22 Feb 2011 22:53:53 +0800	[thread overview]
Message-ID: <AANLkTim2C3MJ8rfJv511DNdkPoJn+0XF4Ap13YH+T=oq@mail.gmail.com> (raw)
In-Reply-To: <30968705.post@talk.nabble.com>

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

cc-mode has its own comment system.  See the doc for c-doc-comment-style.
 Maybe you want javadoc?

On Sun, Feb 20, 2011 at 9:23 AM, jkb0932 <jasonbauer36@yahoo.com> wrote:

>
> I apologize if this question has been asked before; I checked the forums
> and
> different sites and read everything I could get my hands on but have been
> stumped by this one, prob. because I'm kind of a newbie when it comes to
> emacs.
>
> I would like to comment code for C source code such that
>
> /* this is the first line of a comment
>    and this is the second line of comment
> */
>
> becomes
>
> /* this is the first line of a comment
>  * this is the second line of a comment
> */
>
> In other words, put a '*' on each subsequent line. I know there is a
> variable called "commend-continue", which is indeed set to " * " (I did C-h
> v comment-continue RET), but I can't figure out how to make it actually
> automatically insert this on each subsequent line. When I try to do "M-x
> set-variable RET comment-continue RET" it says there's no such variable.
>
> If it helps, I've looked at newcomment.el, which does indeed have a line
> dedicated to it, but is not marked "autoload", so I'm guessing it has
> loaded
> or defined, but I'm not sure how to do this (again, I'm a newbie).
>
> Appreciate any feedback anyone can give. Thanks in advance.
> --
> View this message in context:
> http://old.nabble.com/Unable-to-specify-format-for-code-comments-tp30968705p30968705.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.
>
>
>


-- 
Le

[-- Attachment #2: Type: text/html, Size: 2139 bytes --]

      reply	other threads:[~2011-02-22 14:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20  1:23 Unable to specify format for code comments jkb0932
2011-02-22 14:53 ` Le Wang [this message]

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='AANLkTim2C3MJ8rfJv511DNdkPoJn+0XF4Ap13YH+T=oq@mail.gmail.com' \
    --to=l26wang@gmail.com \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=jasonbauer36@yahoo.com \
    /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).