From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face Date: Wed, 07 Sep 2011 15:17:36 -0400 Message-ID: References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1315423102 18310 80.91.229.12 (7 Sep 2011 19:18:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2011 19:18:22 +0000 (UTC) Cc: 9448@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 07 21:18:16 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R1NdY-0002Ua-G2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Sep 2011 21:18:16 +0200 Original-Received: from localhost ([::1]:37461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1NdY-00088d-1W for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Sep 2011 15:18:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1NdU-00088L-SC for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2011 15:18:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1NdQ-0007qG-Uo for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2011 15:18:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1NdP-0007q4-Pr; Wed, 07 Sep 2011 15:18:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R1NhB-00047a-Kk; Wed, 07 Sep 2011 15:22:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 07 Sep 2011 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9448 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131542329415810 (code B ref 9448); Wed, 07 Sep 2011 19:22:01 +0000 Original-Received: (at 9448) by debbugs.gnu.org; 7 Sep 2011 19:21:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1Ngj-00046w-QR for submit@debbugs.gnu.org; Wed, 07 Sep 2011 15:21:34 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1Ngh-00046p-LN for 9448@debbugs.gnu.org; Wed, 07 Sep 2011 15:21:32 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R1Ncu-0003NJ-JG; Wed, 07 Sep 2011 15:17:36 -0400 X-Spook: IRA wire transfer Mena Elvis SSL fraud top secret X-Ran: j(U+Z@+K,WS*}\Yt!RS^p{4?%5#&LVNKH&[+bIN7^+ibs=epf*Zo;5"=wAXx>n~1V)NO2S X-Hue: red X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 07 Sep 2011 15:22:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50685 Archived-At: Alan Mackenzie wrote: > I think I see the problem, it's with the macro `define-derived-mode'. > This creates an empty syntax table with (defvar awk-mode-syntax-table), > and does this before cc-awk.elc has been loaded. This thus stuffs the > proper definition of awk-mode-syntax-table. That's interesting. I imagine in most cases, all the definitions are in the same file, eg: (defvar foo-mode-map ... ) (defvar foo-mode-syntax-table ... ) (define-derived-mode foo-mode ... ) cc-awk is unusual in that the actual mode is defined in cc-mode.el and requires cc-awk.el as part of its execution. Another option is to move awk-mode-syntax-table from cc-awk.el to cc-mode.el (I see the mode-map and abbrev-table are already there). Unbinding it might erase any user customization.