all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: monnier+gnu/emacs@rum.cs.yale.edu
Subject: Re: /* */ comments in asm-mode.el
Date: Fri, 31 Jan 2003 08:24:12 -0500	[thread overview]
Message-ID: <200301311324.h0VDOCv25890@rum.cs.yale.edu> (raw)
In-Reply-To: 20030131.114516.78720099.jet@gyve.org

> > > gas supprots /* comment */ style comment. However, asm-mode supports only
> > > ; comment
> > > style comment. Therefore the buffer coloring done by font-lock is not 
> > > beautiful. Here I've added /* comment */ style comment support.
> > 
> > You'll also want to update comment-start, comment-start-skip,
> > comment-end (and maybe comment-end-skip) accordingly.
> 
> I've tried. However, I don't know this is correct code or not.
> How could I check the values of comment-start-skip and its friends
> are correct or not?

By reading their docstring: it describes what it should do.

Try uncomment-region or comment-kill or auto-fill-mode or ...
with various kinds of comments.

> -    (setq comment-start-skip (concat cs "+[ \t]*"))
> +    (setq comment-start-skip (concat cs "+[ \t]*" "\\|" "/\\*+ *"))

That looks OK.  You'll probably need to set comment-end-skip as well:

(set (make-local-variable 'comment-end-skip) "[ \t]*\\(\\s>\\|\\*+/\\)")

> +    (setq comment-multi-line t)

This is one is not necessary.


	Stefan

  reply	other threads:[~2003-01-31 13:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22  5:10 /* */ comments in asm-mode.el Masatake YAMATO
2003-01-27 17:45 ` Stefan Monnier
2003-01-31  2:45   ` Masatake YAMATO
2003-01-31 13:24     ` Stefan Monnier [this message]
2003-03-30  9:38       ` Masatake YAMATO

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=200301311324.h0VDOCv25890@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    /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.