From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Anders K." Newsgroups: gmane.emacs.help Subject: Problem with asm-mode-hook Date: Fri, 23 May 2003 02:01:51 GMT Organization: RoadRunner - Carolina Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053657133 755 80.91.224.249 (23 May 2003 02:32:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 May 2003 02:32:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 23 04:32:11 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19J2Kv-000098-00 for ; Fri, 23 May 2003 04:31:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19J2KQ-0004fG-RT for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 22:30:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!news-west.rr.com!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!twister.southeast.rr.com.POSTED!53ab2750!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030508 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 24.93.81.178 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.southeast.rr.com 1053655311 24.93.81.178 (Thu, 22 May 2003 22:01:51 EDT) Original-NNTP-Posting-Date: Thu, 22 May 2003 22:01:51 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:113581 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10077 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10077 I'm trying to change the assembler mode comment character from ; to #, so I put this at the end of ~/.emacs: (defun my-asm-mode-hook () (setq asm-comment-char ?#)) (add-hook 'asm-mode-hook 'my-asm-mode-hook) Unfortunately, the change only takes effect starting with the second assembly file I open. Anyone know why? (I have a similar c-mode-common-hook that works perfectly.) Anders