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:18:23 +0100 [thread overview]
Message-ID: <87tyuckiq8.fsf@fh-trier.de> (raw)
In-Reply-To: 871vhglxfd.fsf@fh-trier.de
Andreas Politz <politza@fh-trier.de> writes:
> 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
(setq asm-comment-char ?\#)
Better escape the lisp comment char.
-ap
next prev parent reply other threads:[~2010-01-23 14:18 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
2010-01-23 14:18 ` Andreas Politz [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tyuckiq8.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.
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.