From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face Date: Thu, 8 Sep 2011 21:13:48 +0000 Message-ID: <20110908211348.GA2338@acm.acm> References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1315516698 30673 80.91.229.12 (8 Sep 2011 21:18:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2011 21:18:18 +0000 (UTC) Cc: 9448@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 08 23:18:12 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 1R1lz9-0006d2-7z for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Sep 2011 23:18:11 +0200 Original-Received: from localhost ([::1]:53378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1lz8-0001b2-0j for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Sep 2011 17:18:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1lz4-0001aq-Kk for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2011 17:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1lz3-0002Mk-Ba for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2011 17:18:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1lz1-0002M8-C1; Thu, 08 Sep 2011 17:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R1m2s-0000ld-Ge; Thu, 08 Sep 2011 17:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie 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: Thu, 08 Sep 2011 21:22:02 +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.13155168942915 (code B ref 9448); Thu, 08 Sep 2011 21:22:02 +0000 Original-Received: (at 9448) by debbugs.gnu.org; 8 Sep 2011 21: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 1R1m2Q-0000ky-Jj for submit@debbugs.gnu.org; Thu, 08 Sep 2011 17:21:34 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1m2O-0000kq-N6 for 9448@debbugs.gnu.org; Thu, 08 Sep 2011 17:21:34 -0400 Original-Received: (qmail 47525 invoked by uid 3782); 8 Sep 2011 21:17:31 -0000 Original-Received: from acm.muc.de (pD9556D77.dip.t-dialin.net [217.85.109.119]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 08 Sep 2011 23:17:29 +0200 Original-Received: (qmail 3770 invoked by uid 1000); 8 Sep 2011 21:13:48 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 08 Sep 2011 17:22:02 -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:50725 Archived-At: On Thu, Sep 08, 2011 at 02:36:24PM -0400, Glenn Morris wrote: > Alan Mackenzie wrote: > > (defvar awk-mode-syntax-table) > > . This ought to prevent my solution above from working, but it > > doesn't. Glenn, I think you put this line in. Why? Would it be OK to > > take it out again? > A defvar with no initvalue just suppresses a byte-compiler warning about > said variable being undefined. It doesn't actually define the variable, > ... Well, you learn something new every day. :-) I'd thought that (defvar foo nil) and (defvar foo) were the same. They're not. > so I think that line should stay there, to stop the compiler complaining > about an undefined variable in > (set-syntax-table awk-mode-syntax-table) OK. > (So by the way I think this means cc-bytecomp-defvar is no longer > needed. Also cc-bytecomp-defun can be replaced by declare-function.) There's the rub. The more such "tidying up" changes are made in savannah, the more difficult it becomes for me to synch changes with the upstream CC Mode. There're already > 80 such differences in cc-mode.el alone. > > Glenn, what on earth brought you to try deleting cc-fonts.elc? It seems > > a stroke of genius, but how did you come to consider it? :-) > I saw from the ChangeLog that cc-fonts was the most recent part of > cc-mode to be changed, so I tried reverting that commit. To make it take > effect, I deleted the old cc-fonts.elc rather than recompiling it. And the irony is, AWK code doesn't use cc-fonts.elc for its fontification; it uses a simple regexp based model. ;-) -- Alan Mackenzie (Nuremberg, Germany).