From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.help Subject: Re: asm mode doesn't recognize gas comments... Date: Sat, 23 Jan 2010 15:18:23 +0100 Message-ID: <87tyuckiq8.fsf@fh-trier.de> References: <871vhglxfd.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264256454 25327 80.91.229.12 (23 Jan 2010 14:20:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2010 14:20:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 23 15:20:47 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYgqz-0002fw-3W for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jan 2010 15:20:45 +0100 Original-Received: from localhost ([127.0.0.1]:54476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYgr0-0000Um-52 for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jan 2010 09:20:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYgqc-0000UR-8J for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 09:20:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYgqX-0000QV-Ih for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 09:20:21 -0500 Original-Received: from [199.232.76.173] (port=45996 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYgqX-0000QH-EE for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 09:20:17 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:37341) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NYgqW-0003qv-TG for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 09:20:17 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NYgqT-0002Ow-Ha for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 15:20:13 +0100 Original-Received: from dslb-088-068-213-173.pools.arcor-ip.net ([88.68.213.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Jan 2010 15:20:13 +0100 Original-Received: from politza by dslb-088-068-213-173.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Jan 2010 15:20:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-088-068-213-173.pools.arcor-ip.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:NWwN4NsPL+/8TsIWw5hBgvZybIQ= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71400 Archived-At: Andreas Politz writes: > Brendan Miller 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