From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: asm mode doesn't recognize gas comments...
Date: Sat, 23 Jan 2010 15:15:34 +0100 [thread overview]
Message-ID: <871vhglxfd.fsf@fh-trier.de> (raw)
In-Reply-To: ef38762f1001230209r25c354ceo1708880d9fd2105d@mail.gmail.com
Brendan Miller <catphive@catphive.net> writes:
> By default it seems that asm mode recognizes MASM style comments
> (starting with ;), but not gas style comments (starting with #). A
> little weird for a GNU program running on Linux...
>
> Anyway, according to asm modes docs:
> http://www.phys.ufl.edu/docs/emacs/emacs_299.html
>
> asm-comment-char can be set. So I added this to my .emacs:
>
> (set 'asm-comment-char "#")
>
> This makes ; stop highlighting like a comment, but doesn't make # do
> anything. Am I doing anything obviously wrong? Is there some mode file
> somewhere that actually handles the GNU assembler syntax?
>
> Brendan
(setq asm-comment-char ?#)
It think it has to be a character (not a string).
-ap
next prev parent reply other threads:[~2010-01-23 14:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-23 10:09 asm mode doesn't recognize gas comments Brendan Miller
2010-01-23 14:15 ` Andreas Politz [this message]
2010-01-23 14:18 ` Andreas Politz
2010-01-23 18:22 ` Brendan Miller
[not found] <mailman.57.1264241362.14305.help-gnu-emacs@gnu.org>
2010-01-26 3:14 ` rustom
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=871vhglxfd.fsf@fh-trier.de \
--to=politza@fh-trier.de \
--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.
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).