From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Sep 2011 04:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9448 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9448@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.131528346510781 (code B ref -1); Tue, 06 Sep 2011 04:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Sep 2011 04:31:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0nJQ-0002nq-Sf for submit@debbugs.gnu.org; Tue, 06 Sep 2011 00:31:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0nJO-0002nh-36 for submit@debbugs.gnu.org; Tue, 06 Sep 2011 00:31:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0nFj-0007JM-JO for submit@debbugs.gnu.org; Tue, 06 Sep 2011 00:27:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:47004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0nFj-0007JI-H2 for submit@debbugs.gnu.org; Tue, 06 Sep 2011 00:27:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0nFi-00081R-9K for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 00:27:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0nFg-0007J4-T4 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 00:27:14 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:37375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0nFg-0007J0-Pq for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 00:27:12 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R0nFg-0001Cu-Lg for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 00:27:12 -0400 Date: Tue, 06 Sep 2011 00:27:12 -0400 Message-Id: From: Eli Zaretskii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) emacs -Q C-x C-f foo.awk RET Type "# something" (without quotes). The comment is not highlighted in the font-lock-comment face, as expected. comment-start and comment-start-skip seem to have reasonable values. In GNU Emacs 24.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-09-05 on fencepost configured using `configure '--enable-asserts' '--enable-checking' '--with-gif=no' '--with-tiff=no'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: RMAIL Minor modes in effect: shell-dirtrack-mode: t display-time-mode: t show-paren-mode: t savehist-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: o n SPC a s SPC p a r t SPC o f SPC t h e SPC s t a n d a l o n e SPC i n s t a l l e r SPC i s SPC t h e SPC o n l y SPC p r a c t i c a l SPC w a y . ESC O B RET ESC < ESC > ESC O D ESC O D SPC t h a t SPC d o e s n ' t SPC r e q u i r e SPC P y t h i o n ESC O D ESC O D DEL ESC O B ESC O D ESC O D ESC b a SPC ESC f SPC i n s t a l l a t i o n ESC q ESC O B C-c C-c ESC ! ESC O A RET ESC x ESC O A RET ESC O A RET C-s 0 8 : 1 8 : 4 1 ESC O B ESC [ 6 ~ ESC [ 6 ~ ESC O B ESC O B ESC O B ESC O B C-x C-x C-w C-x C-s C-x k RET C-u g ESC O A RET d d d C-x C-s ESC O B ESC O A C-u g ESC O A DEL e w RET d d n d d d d d d d d d d d d d d d d d d d d d C-x C-z C-x C-f f o o . a w k RET # SPC f o o RET ESC ~ C-x b RET C-x C-z ESC x r e p o r t - e m a c s - b u g RET Recent messages: Counting new messages...done (24) Saving file /home/e/eliz/INBOX... Wrote /home/e/eliz/INBOX [2 times] Computing summary lines...done 24 new messages read Showing message 673 Showing message 673...done No following nondeleted message (New file) Modification-flag cleared Load-path shadows: None found. Features: (shadow emacsbug cc-awk shell pcomplete comint ring newcomment flyspell ispell multi-isearch vc-bzr cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs qp rmailsum rmailmm message sendmail regexp-opt format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time paren cus-start cus-load time-date savehist saveplace tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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 07:56: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: To: Eli Zaretskii Cc: 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131538212817271 (code B ref 9448); Wed, 07 Sep 2011 07:56:01 +0000 Received: (at 9448) by debbugs.gnu.org; 7 Sep 2011 07:55:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1Cyl-0004UV-9t for submit@debbugs.gnu.org; Wed, 07 Sep 2011 03:55:28 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1Cyj-0004UO-DE for 9448@debbugs.gnu.org; Wed, 07 Sep 2011 03:55:25 -0400 Received: from localhost ([127.0.0.1]:34432) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Cuy-0000aU-Up; Wed, 07 Sep 2011 03:51:33 -0400 From: Glenn Morris References: X-Spook: Chobetsu AUTODIN Nazi unclassified cybercash CDC Craig X-Ran: +IC5%0jiteLUgW[DZ9Ki7'R:_%a[.y,O-c6(IO~Cgj#sZx.L2r_s*&,gp>y$#;FKx}9b7K X-Hue: green X-Attribution: GM Date: Wed, 07 Sep 2011 03:51:32 -0400 In-Reply-To: (Eli Zaretskii's message of "Tue, 06 Sep 2011 00:27:12 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) If you delete the compiled version of cc-fonts, it works... From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face Resent-From: Eli Zaretskii 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 16:36: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: To: Glenn Morris Cc: 9448@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131541334625650 (code B ref 9448); Wed, 07 Sep 2011 16:36:01 +0000 Received: (at 9448) by debbugs.gnu.org; 7 Sep 2011 16:35:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1L6H-0006fe-7D for submit@debbugs.gnu.org; Wed, 07 Sep 2011 12:35:45 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1L6C-0006fU-U0 for 9448@debbugs.gnu.org; Wed, 07 Sep 2011 12:35:43 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LR500A00TAZA400@a-mtaout22.012.net.il> for 9448@debbugs.gnu.org; Wed, 07 Sep 2011 19:30:19 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.9.62]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LR500ASNV6FDG70@a-mtaout22.012.net.il>; Wed, 07 Sep 2011 19:30:17 +0300 (IDT) Date: Wed, 07 Sep 2011 19:30:19 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83hb4o71t0.fsf@gnu.org> References: X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > From: Glenn Morris > Cc: 9448@debbugs.gnu.org > Date: Wed, 07 Sep 2011 03:51:32 -0400 > > > If you delete the compiled version of cc-fonts, it works... You mean, delete it and never compile it again, yes? From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: asdf References: In-Reply-To: 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: Wed, 07 Sep 2011 17:10: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: To: 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.13154153691552 (code B ref 9448); Wed, 07 Sep 2011 17:10:02 +0000 Received: (at 9448) by debbugs.gnu.org; 7 Sep 2011 17:09:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1Lcv-0000Oz-8F for submit@debbugs.gnu.org; Wed, 07 Sep 2011 13:09:29 -0400 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 1R1Lcs-0000Op-5f for 9448@debbugs.gnu.org; Wed, 07 Sep 2011 13:09:27 -0400 Received: (qmail 20647 invoked by uid 3782); 7 Sep 2011 17:05:28 -0000 Received: from acm.muc.de (pD955752B.dip.t-dialin.net [217.85.117.43]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 07 Sep 2011 19:05:26 +0200 Received: (qmail 5162 invoked by uid 1000); 7 Sep 2011 17:01:47 -0000 Date: Wed, 7 Sep 2011 17:01:47 +0000 Message-ID: <20110907170147.GA5076@acm.acm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) Hi, Eli and Glenn. > emacs -Q > C-x C-f foo.awk RET > Type "# something" (without quotes). The comment is not highlighted > in the font-lock-comment face, as expected. comment-start and > comment-start-skip seem to have reasonable values. A bit of binary chopping shows that the bug first became visible after this change: revno: 104401 committer: Chong Yidong branch nick: trunk timestamp: Sat 2011-05-28 13:16:54 -0400 message: Make CC modes inherit from prog-mode. * lisp/progmodes/cc-mode.el (c-mode, c++-mode, objc-mode, java-mode) (idl-mode, pike-mode, awk-mode): Inherit from prog-mode. I cannot see anything in the change with looks remotely suspicious, however. Except, of course, that AWK Mode is now constructed by a macro of some complexity, doubly invoked. Deleting cc-fonts.elc (thus allowing cc-fonts.el to be loaded) gets fontification of AWK comments working for me, too. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Wed, 07 Sep 2011 18:23: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: To: 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131541972731541 (code B ref 9448); Wed, 07 Sep 2011 18:23:01 +0000 Received: (at 9448) by debbugs.gnu.org; 7 Sep 2011 18:22:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1MlC-0008Cg-SJ for submit@debbugs.gnu.org; Wed, 07 Sep 2011 14:22:07 -0400 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 1R1MlA-0008CY-PL for 9448@debbugs.gnu.org; Wed, 07 Sep 2011 14:22:06 -0400 Received: (qmail 26119 invoked by uid 3782); 7 Sep 2011 18:18:09 -0000 Received: from acm.muc.de (pD955752B.dip.t-dialin.net [217.85.117.43]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 07 Sep 2011 20:18:08 +0200 Received: (qmail 5346 invoked by uid 1000); 7 Sep 2011 18:14:29 -0000 Date: Wed, 7 Sep 2011 18:14:29 +0000 Message-ID: <20110907181429.GB5076@acm.acm> References: <20110907170147.GA5076@acm.acm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110907170147.GA5076@acm.acm> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.3 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) Hi, all. On Wed, Sep 07, 2011 at 05:01:47PM +0000, Alan Mackenzie wrote: > > emacs -Q > > C-x C-f foo.awk RET > > Type "# something" (without quotes). The comment is not highlighted > > in the font-lock-comment face, as expected. comment-start and > > comment-start-skip seem to have reasonable values. > A bit of binary chopping shows that the bug first became visible after > this change: > revno: 104401 > committer: Chong Yidong > branch nick: trunk > timestamp: Sat 2011-05-28 13:16:54 -0400 > message: > Make CC modes inherit from prog-mode. > * lisp/progmodes/cc-mode.el (c-mode, c++-mode, objc-mode, java-mode) > (idl-mode, pike-mode, awk-mode): Inherit from prog-mode. > I cannot see anything in the change with looks remotely suspicious, > however. Except, of course, that AWK Mode is now constructed by a macro > of some complexity, doubly invoked. 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. Because of this, ?# doesn't have the open-comment syntax flag, thus comments can't get fontified. If I'm right about this, a solution would be to insert (makunbound 'awk-mode-syntax-table) at the top of the mode initialisation. Why on earth does `define-derived-mode' have the temerity to create an empty, thus useless, syntax table? Maybe this should be taken out of the macro. > Deleting cc-fonts.elc (thus allowing cc-fonts.el to be loaded) gets > fontification of AWK comments working for me, too. I still don't have a clue why this is happening. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: To: Alan Mackenzie Cc: 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131542329415810 (code B ref 9448); Wed, 07 Sep 2011 19:22:01 +0000 Received: (at 9448) by debbugs.gnu.org; 7 Sep 2011 19:21:34 +0000 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 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 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 From: Glenn Morris References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> 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 Date: Wed, 07 Sep 2011 15:17:36 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) 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. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face Resent-From: Stefan Monnier 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 02:17: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: To: Alan Mackenzie Cc: 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131544820027894 (code B ref 9448); Thu, 08 Sep 2011 02:17:01 +0000 Received: (at 9448) by debbugs.gnu.org; 8 Sep 2011 02:16:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1UAS-0007Fq-3u for submit@debbugs.gnu.org; Wed, 07 Sep 2011 22:16:40 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1UAQ-0007Fj-36 for 9448@debbugs.gnu.org; Wed, 07 Sep 2011 22:16:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAJwjaE64rwMJ/2dsb2JhbABDp3F5gUYBAQQBViMFCwsOJhIUGA0kLodat1mGawSgJIRA X-IronPort-AV: E=Sophos;i="4.68,348,1312171200"; d="scan'208";a="135079835" Received: from 184-175-3-9.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.9]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 07 Sep 2011 22:12:41 -0400 Received: by ceviche.home (Postfix, from userid 20848) id C3F2F66246; Wed, 7 Sep 2011 22:12:40 -0400 (EDT) From: Stefan Monnier Message-ID: References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> Date: Wed, 07 Sep 2011 22:12:40 -0400 In-Reply-To: <20110907181429.GB5076@acm.acm> (Alan Mackenzie's message of "Wed, 7 Sep 2011 18:14:29 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > If I'm right about this, a solution would be to insert > (makunbound 'awk-mode-syntax-table) I wouldn't consider this as a solution. I see a few solutions, tho: - move the defvar from cc-awk to cc-mode. - move the define-derived-mode to cc-awk (sounds natural, from my "I haven't looked at the code" point of view). - add a ":syntax-table awk-mode-syntax-table" argument to define-derived-mode. > at the top of the mode initialisation. Why on earth does > `define-derived-mode' have the temerity to create an empty, thus useless, > syntax table? It's actually not empty: it inherits from the parent. This is taken directly from the original define-derived-mode, which was oddly meant for end-users. It also has the advantage to ensure that every major-mode defined with define-derived-mode will have a foo-mode-syntax-table. > Maybe this should be taken out of the macro. Maybe so, yes. I'm not completely sure. In any case it's too late to do that for Emacs-24. But we could try it out in Emacs-25. Stefan From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Thu, 08 Sep 2011 06:21: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: To: Stefan Monnier Cc: Alan Mackenzie , 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131546281226128 (code B ref 9448); Thu, 08 Sep 2011 06:21:02 +0000 Received: (at 9448) by debbugs.gnu.org; 8 Sep 2011 06:20:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1Xy7-0006nM-7U for submit@debbugs.gnu.org; Thu, 08 Sep 2011 02:20:12 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1Xy4-0006nF-8F for 9448@debbugs.gnu.org; Thu, 08 Sep 2011 02:20:09 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R1XuD-0002Ej-FH; Thu, 08 Sep 2011 02:16:09 -0400 From: Glenn Morris References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> X-Spook: Centro CDMA Abu Ghraib Al-Qaeda Ft. Bragg supercomputer X-Ran: (Stefan Monnier's message of "Wed, 07 Sep 2011 22:12:40 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Stefan Monnier wrote: > - add a ":syntax-table awk-mode-syntax-table" argument to define-derived-mode. This doesn't work by itself. When calling `awk-mode', cc-awk.el is not loaded early enough. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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 08:41: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: To: Stefan Monnier Cc: 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131547125629628 (code B ref 9448); Thu, 08 Sep 2011 08:41:02 +0000 Received: (at 9448) by debbugs.gnu.org; 8 Sep 2011 08:40:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1aAJ-0007hp-Vq for submit@debbugs.gnu.org; Thu, 08 Sep 2011 04:40:56 -0400 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 1R1aAH-0007hg-FS for 9448@debbugs.gnu.org; Thu, 08 Sep 2011 04:40:54 -0400 Received: (qmail 13855 invoked by uid 3782); 8 Sep 2011 08:36:54 -0000 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 10:36:52 +0200 Received: (qmail 2709 invoked by uid 1000); 8 Sep 2011 08:33:11 -0000 Date: Thu, 8 Sep 2011 08:33:11 +0000 Message-ID: <20110908083311.GA2521@acm.acm> References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.2 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) Hi, Stefan On Wed, Sep 07, 2011 at 10:12:40PM -0400, Stefan Monnier wrote: > > If I'm right about this, a solution would be to insert > > (makunbound 'awk-mode-syntax-table) > I wouldn't consider this as a solution. It doesn't work anyway. ;-) > I see a few solutions, tho: > - move the defvar from cc-awk to cc-mode. Undesirable. > - move the define-derived-mode to cc-awk (sounds natural, from my > "I haven't looked at the code" point of view). That's beginning to sound serious. CC Mode is structured so that the interface with the "OS" bit of the host Emacs is in cc-mode.el. > - add a ":syntax-table awk-mode-syntax-table" argument to define-derived-mode. I've tried :syntax-table nil, and this doesn't generate awk-mode-syntax-table. It appears to work. > > at the top of the mode initialisation. Why on earth does > > `define-derived-mode' have the temerity to create an empty, thus useless, > > syntax table? > It's actually not empty: it inherits from the parent. This is taken > directly from the original define-derived-mode, which was oddly meant > for end-users. > It also has the advantage to ensure that every major-mode defined with > define-derived-mode will have a foo-mode-syntax-table. > > Maybe this should be taken out of the macro. > Maybe so, yes. I'm not completely sure. In any case it's too late to > do that for Emacs-24. But we could try it out in Emacs-25. OK. One other thing is bothering me quite a bit. Just before all this, at L1530 in cc-mode.el is the line (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? BTW, I've found out why deleting cc-fonts.elc does what it does. There is a "(cc-require-when-compile 'cc-awk)" in cc-fonts.el. When this file isn't byte compiled, that form loads cc-awk.elc, and this happens before the bulk of cc-mode.elc is loaded. That form should probably be removed, since it no longer serves a purpose. 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? :-) > Stefan -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Thu, 08 Sep 2011 18:41: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: To: Alan Mackenzie Cc: Stefan Monnier , 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131550722924818 (code B ref 9448); Thu, 08 Sep 2011 18:41:01 +0000 Received: (at 9448) by debbugs.gnu.org; 8 Sep 2011 18:40:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1jWW-0006SE-5B for submit@debbugs.gnu.org; Thu, 08 Sep 2011 14:40:29 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1jWT-0006S4-FM for 9448@debbugs.gnu.org; Thu, 08 Sep 2011 14:40:26 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R1jSa-0002gk-MW; Thu, 08 Sep 2011 14:36:24 -0400 From: Glenn Morris References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> X-Spook: rail gun Compsec analyzer Verisign chameleon man Roswell X-Ran: -O3i#wd4uWLljKqTwY*ca-@uEwp<=*v.b{+w>4EtW\S%`~lIr='j<#)Ld)#(<<4Z+&.Tn+ X-Hue: magenta X-Attribution: GM Date: Thu, 08 Sep 2011 14:36:24 -0400 In-Reply-To: <20110908083311.GA2521@acm.acm> (Alan Mackenzie's message of "Thu, 8 Sep 2011 08:33:11 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) 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, 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) (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.) > 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. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: To: Glenn Morris Cc: Stefan Monnier , 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.13155168942915 (code B ref 9448); Thu, 08 Sep 2011 21:22:02 +0000 Received: (at 9448) by debbugs.gnu.org; 8 Sep 2011 21:21:34 +0000 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 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 Received: (qmail 47525 invoked by uid 3782); 8 Sep 2011 21:17:31 -0000 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 Received: (qmail 3770 invoked by uid 1000); 8 Sep 2011 21:13:48 -0000 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) 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). From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Thu, 08 Sep 2011 21:55: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: To: Alan Mackenzie Cc: Stefan Monnier , 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131551888110993 (code B ref 9448); Thu, 08 Sep 2011 21:55:01 +0000 Received: (at 9448) by debbugs.gnu.org; 8 Sep 2011 21:54:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1mYS-0002rF-Gq for submit@debbugs.gnu.org; Thu, 08 Sep 2011 17:54:41 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1mYQ-0002r8-2S for 9448@debbugs.gnu.org; Thu, 08 Sep 2011 17:54:39 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R1mUW-0005vV-CC; Thu, 08 Sep 2011 17:50:36 -0400 From: Glenn Morris References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> X-Spook: 9705 Samford Road Dick Cheney Khaddafi lynch TWA freedom X-Ran: enU'DG]}\luabNm[.&%CP User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.8 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) Alan Mackenzie wrote: > 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. (defvar foo) works to silence the compiler since at least Emacs 21.4 (I think). declare-function works since Emacs 23.1, and exists as a no-op in Emacs 22.2 and 22.3. I hope that one day cc-bytecomp can just be removed. The part that deals with "an older CC Mode with outdated macros [being] loaded during compilation" is clever, but IMO just adds a bunch of complexity to solve a problem that doesn't need solving. Files should be compiled in batch mode in a separate Emacs instance. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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 22: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: To: Glenn Morris Cc: Stefan Monnier , 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131552048618503 (code B ref 9448); Thu, 08 Sep 2011 22:22:02 +0000 Received: (at 9448) by debbugs.gnu.org; 8 Sep 2011 22:21:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1myM-0004oO-I7 for submit@debbugs.gnu.org; Thu, 08 Sep 2011 18:21:26 -0400 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 1R1myJ-0004oE-At for 9448@debbugs.gnu.org; Thu, 08 Sep 2011 18:21:24 -0400 Received: (qmail 51812 invoked by uid 3782); 8 Sep 2011 22:17:21 -0000 Received: from acm.muc.de (pD9556D77.dip.t-dialin.net [217.85.109.119]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 09 Sep 2011 00:17:20 +0200 Received: (qmail 4006 invoked by uid 1000); 8 Sep 2011 22:13:39 -0000 Date: Thu, 8 Sep 2011 22:13:39 +0000 Message-ID: <20110908221339.GC2338@acm.acm> References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> <5z4o0mzosz.fsf@fencepost.gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5z4o0mzosz.fsf@fencepost.gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) Hi, Glenn. On Thu, Sep 08, 2011 at 05:50:36PM -0400, Glenn Morris wrote: > Alan Mackenzie wrote: > > 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. > (defvar foo) > works to silence the compiler since at least Emacs 21.4 (I think). There're quite a few other such constructs. Does it work under XEmacs? If so which versions. They're all things which are easy to check, but cumulatively it's a massive time sink. > declare-function works since Emacs 23.1, and exists as a no-op in Emacs > 22.2 and 22.3. Again, what about XEmacs? > I hope that one day cc-bytecomp can just be removed. The part that deals > with "an older CC Mode with outdated macros [being] loaded during > compilation" is clever, but IMO just adds a bunch of complexity to solve > a problem that doesn't need solving. Files should be compiled in batch > mode in a separate Emacs instance. I'd agree with you about its eventual removal. Clearly there was a big problem to solve - something like cc-bytecomp.el doesn't get knocked together in a couple of hours. I suspect Martin Stjernholm was having big problems with his various versions during development, and that cc-bytecomp is more for me and colleagues rather than ordinary users. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face Resent-From: Stefan Monnier 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: Fri, 09 Sep 2011 02:32: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: To: Alan Mackenzie Cc: Glenn Morris , 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131553546819618 (code B ref 9448); Fri, 09 Sep 2011 02:32:01 +0000 Received: (at 9448) by debbugs.gnu.org; 9 Sep 2011 02:31:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1qs0-00056M-8R for submit@debbugs.gnu.org; Thu, 08 Sep 2011 22:31:08 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1qrz-00056G-BT for 9448@debbugs.gnu.org; Thu, 08 Sep 2011 22:31:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0JAKB4aU64rwMJ/2dsb2JhbABDmGePHHmBQgQBAQVWIxALDiYSFBgNJIgAuFWGbQSgJIRA X-IronPort-AV: E=Sophos;i="4.68,353,1312171200"; d="scan'208";a="135261355" Received: from 184-175-3-9.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.9]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 08 Sep 2011 22:27:05 -0400 Received: by ceviche.home (Postfix, from userid 20848) id E4498660B6; Thu, 8 Sep 2011 22:27:04 -0400 (EDT) From: Stefan Monnier Message-ID: References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> <5z4o0mzosz.fsf@fencepost.gnu.org> <20110908221339.GC2338@acm.acm> Date: Thu, 08 Sep 2011 22:27:04 -0400 In-Reply-To: <20110908221339.GC2338@acm.acm> (Alan Mackenzie's message of "Thu, 8 Sep 2011 22:13:39 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > ... XEmacs ... it's a massive time sink. I tend to agree ;-) Stefan From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Fri, 09 Sep 2011 03:49: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: To: Alan Mackenzie Cc: Stefan Monnier , 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.13155401286990 (code B ref 9448); Fri, 09 Sep 2011 03:49:02 +0000 Received: (at 9448) by debbugs.gnu.org; 9 Sep 2011 03:48:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1s59-0001og-JE for submit@debbugs.gnu.org; Thu, 08 Sep 2011 23:48:47 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1s53-0001oP-9i for 9448@debbugs.gnu.org; Thu, 08 Sep 2011 23:48:45 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R1s18-0003eA-6M; Thu, 08 Sep 2011 23:44:38 -0400 From: Glenn Morris References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> <5z4o0mzosz.fsf@fencepost.gnu.org> <20110908221339.GC2338@acm.acm> X-Spook: MD2 clandestine argus Vince Foster SRI [Hello to all my X-Ran: %P~,#vgA)o"g$=!0}tKiorNNK User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Alan Mackenzie wrote: > Again, what about XEmacs? It's your call as to how relevant you think other varieties of Emacs are to you and to others, and how much effort you think it's worth investing in supporting them. If it takes a lot of time to ensure that the latest cc-mode runs on a bunch of platforms, then personally I think that's time that could be better spent, in making it work better on fewer. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face Resent-From: Eli Zaretskii 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: Fri, 09 Sep 2011 07:06: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: To: Alan Mackenzie Cc: rgm@gnu.org, 9448@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131555191425875 (code B ref 9448); Fri, 09 Sep 2011 07:06:01 +0000 Received: (at 9448) by debbugs.gnu.org; 9 Sep 2011 07:05:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1v9E-0006jG-En for submit@debbugs.gnu.org; Fri, 09 Sep 2011 03:05:12 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1v9B-0006j8-5J for 9448@debbugs.gnu.org; Fri, 09 Sep 2011 03:05:10 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LR800900U2MVN00@a-mtaout20.012.net.il> for 9448@debbugs.gnu.org; Fri, 09 Sep 2011 10:01:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.9.62]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LR8009C6U5SGS90@a-mtaout20.012.net.il>; Fri, 09 Sep 2011 10:01:05 +0300 (IDT) Date: Fri, 09 Sep 2011 10:01:10 +0300 From: Eli Zaretskii In-reply-to: <20110908211348.GA2338@acm.acm> X-012-Sender: halo1@inter.net.il Message-id: <83zkie5he1.fsf@gnu.org> References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Date: Thu, 8 Sep 2011 21:13:48 +0000 > From: Alan Mackenzie > Cc: 9448@debbugs.gnu.org > > 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. How about switching CC Mode repo from CVS to Bazar? Then merges would be seamless. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face Resent-From: Eli Zaretskii 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: Fri, 09 Sep 2011 07:10: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: To: Glenn Morris Cc: acm@muc.de, 9448@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131555219426259 (code B ref 9448); Fri, 09 Sep 2011 07:10:02 +0000 Received: (at 9448) by debbugs.gnu.org; 9 Sep 2011 07:09:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1vDm-0006pU-Dw for submit@debbugs.gnu.org; Fri, 09 Sep 2011 03:09:54 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1vDk-0006pM-Fn for 9448@debbugs.gnu.org; Fri, 09 Sep 2011 03:09:52 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LR800900U8DXV00@a-mtaout20.012.net.il> for 9448@debbugs.gnu.org; Fri, 09 Sep 2011 10:04:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.9.62]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LR80095AUBTS750@a-mtaout20.012.net.il>; Fri, 09 Sep 2011 10:04:42 +0300 (IDT) Date: Fri, 09 Sep 2011 10:04:47 +0300 From: Eli Zaretskii In-reply-to: <5z4o0mzosz.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il Message-id: <83y5xy5h80.fsf@gnu.org> References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> <5z4o0mzosz.fsf@fencepost.gnu.org> X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > From: Glenn Morris > Date: Thu, 08 Sep 2011 17:50:36 -0400 > Cc: 9448@debbugs.gnu.org > > Files should be compiled in batch mode in a separate Emacs instance. Are you saying that emacs-lisp-byte-compile-and-load's interactive use should be discouraged? I use it quite frequently to test changes in the same Emacs session where I make those changes. If we think it's not a good idea, then we should deprecate the command and remove the corresponding menu item. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Fri, 09 Sep 2011 07:17: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: To: Eli Zaretskii Cc: acm@muc.de, 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131555258029513 (code B ref 9448); Fri, 09 Sep 2011 07:17:02 +0000 Received: (at 9448) by debbugs.gnu.org; 9 Sep 2011 07:16:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1vK0-0007fy-DE for submit@debbugs.gnu.org; Fri, 09 Sep 2011 03:16:20 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1vJy-0007fr-GT for 9448@debbugs.gnu.org; Fri, 09 Sep 2011 03:16:18 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R1vFz-0001x2-Nt; Fri, 09 Sep 2011 03:12:11 -0400 From: Glenn Morris References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> <5z4o0mzosz.fsf@fencepost.gnu.org> <83y5xy5h80.fsf@gnu.org> X-Spook: Steve Case David John Oates undercover Etacs weapons of X-Ran: KR@~5Sga=X*o=gw'_>R)e:;N)lCeVCYq#8N+qAaJ%S[x^%m|,kV[$SlbBY; X-Hue: green X-Attribution: GM Date: Fri, 09 Sep 2011 03:12:11 -0400 In-Reply-To: <83y5xy5h80.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Sep 2011 10:04:47 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Eli Zaretskii wrote: > Are you saying that emacs-lisp-byte-compile-and-load's interactive use > should be discouraged? I use it quite frequently to test changes in > the same Emacs session where I make those changes. No; I use it like that too. All I'm saying is, when you download someone's foo-mode to install it on your system, foo-mode's installation process should compile it using batch mode. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Fri, 09 Sep 2011 07:24: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: To: Eli Zaretskii Cc: acm@muc.de, 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.131555303630143 (code B ref 9448); Fri, 09 Sep 2011 07:24:02 +0000 Received: (at 9448) by debbugs.gnu.org; 9 Sep 2011 07:23:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1vRL-0007q4-7t for submit@debbugs.gnu.org; Fri, 09 Sep 2011 03:23:56 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1vRJ-0007px-LE for 9448@debbugs.gnu.org; Fri, 09 Sep 2011 03:23:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R1vNN-0002PC-AN; Fri, 09 Sep 2011 03:19:49 -0400 From: Glenn Morris References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> <5z4o0mzosz.fsf@fencepost.gnu.org> <83y5xy5h80.fsf@gnu.org> X-Spook: Crypto AG eternity server red noise Audiotel X-Ran: `vGLr3X`-91g(L.<\,{3`a\|,fM'`$^]T>@@w:E?NnUQI&uBKy2l>^?5&iyqpKZ2NqGhfI X-Hue: magenta X-Attribution: GM Date: Fri, 09 Sep 2011 03:19:48 -0400 In-Reply-To: (Glenn Morris's message of "Fri, 09 Sep 2011 03:12:11 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Glenn Morris wrote: > Eli Zaretskii wrote: > >> Are you saying that emacs-lisp-byte-compile-and-load's interactive use >> should be discouraged? I use it quite frequently to test changes in >> the same Emacs session where I make those changes. > > No; I use it like that too. All I'm saying is, when you download > someone's foo-mode to install it on your system, foo-mode's installation > process should compile it using batch mode. In fact, I'm not even saying that, because for a single, simple foo.el compiling it in a running Emacs is probably fine. I'm just saying that if I were compiling something as complex as cc-mode, I'd definitely do it in batch-mode, and would not try to support the case where an older cc-mode is already loaded in the compiling Emacs. From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Fri, 09 Sep 2011 09:47: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: To: Eli Zaretskii Cc: rgm@gnu.org, 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.13155615983976 (code B ref 9448); Fri, 09 Sep 2011 09:47:02 +0000 Received: (at 9448) by debbugs.gnu.org; 9 Sep 2011 09:46:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1xfR-000124-Ub for submit@debbugs.gnu.org; Fri, 09 Sep 2011 05:46:38 -0400 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 1R1xfP-00011x-KB for 9448@debbugs.gnu.org; Fri, 09 Sep 2011 05:46:37 -0400 Received: (qmail 47807 invoked by uid 3782); 9 Sep 2011 09:42:31 -0000 Received: from acm.muc.de (pD95561CC.dip.t-dialin.net [217.85.97.204]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 09 Sep 2011 11:42:29 +0200 Received: (qmail 2983 invoked by uid 1000); 9 Sep 2011 09:38:46 -0000 Date: Fri, 9 Sep 2011 09:38:46 +0000 Message-ID: <20110909093846.GA2875@acm.acm> References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> <20110908211348.GA2338@acm.acm> <83zkie5he1.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83zkie5he1.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Morning, Eli. On Fri, Sep 09, 2011 at 10:01:10AM +0300, Eli Zaretskii wrote: > > Date: Thu, 8 Sep 2011 21:13:48 +0000 > > From: Alan Mackenzie > > Cc: 9448@debbugs.gnu.org > > 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. > How about switching CC Mode repo from CVS to Bazar? Then merges would > be seamless. Some time soon I'll probably be forced to change, since SourceForge won't be supporting CVS for ever. The time taken is checking each individual change. Some of them will break support for older Emacsen. Ediff works well. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Sep 06 14:23:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eli Zaretskii Subject: bug#9448: closed (Bug fixed.) Message-ID: References: <20110909095650.GB2875@acm.acm> X-Gnu-PR-Message: they-closed 9448 X-Gnu-PR-Package: emacs,cc-mode Reply-To: 9448@debbugs.gnu.org Date: Fri, 09 Sep 2011 10:05:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1315562702-8219-1" This is a multi-part message in MIME format... ------------=_1315562702-8219-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9448: 24.0.50; Comments in Awk scripts not fontified with comment face which was filed against the emacs,cc-mode package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9448@debbugs.gnu.org. --=20 9448: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9448 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1315562702-8219-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9448-done) by debbugs.gnu.org; 9 Sep 2011 10:04:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1xwu-000284-PI for submit@debbugs.gnu.org; Fri, 09 Sep 2011 06:04:41 -0400 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 1R1xwt-00027w-0C for 9448-done@debbugs.gnu.org; Fri, 09 Sep 2011 06:04:40 -0400 Received: (qmail 58499 invoked by uid 3782); 9 Sep 2011 10:00:34 -0000 Received: from acm.muc.de (pD95561CC.dip.t-dialin.net [217.85.97.204]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 09 Sep 2011 12:00:33 +0200 Received: (qmail 3748 invoked by uid 1000); 9 Sep 2011 09:56:50 -0000 Date: Fri, 9 Sep 2011 09:56:50 +0000 To: 9448-done@debbugs.gnu.org Subject: Bug fixed. Message-ID: <20110909095650.GB2875@acm.acm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 9448-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Bug fixed. -- Alan Mackenzie (Nuremberg, Germany). ------------=_1315562702-8219-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Sep 2011 04:31:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0nJQ-0002nq-Sf for submit@debbugs.gnu.org; Tue, 06 Sep 2011 00:31:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0nJO-0002nh-36 for submit@debbugs.gnu.org; Tue, 06 Sep 2011 00:31:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0nFj-0007JM-JO for submit@debbugs.gnu.org; Tue, 06 Sep 2011 00:27:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:47004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0nFj-0007JI-H2 for submit@debbugs.gnu.org; Tue, 06 Sep 2011 00:27:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0nFi-00081R-9K for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 00:27:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0nFg-0007J4-T4 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 00:27:14 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:37375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0nFg-0007J0-Pq for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 00:27:12 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R0nFg-0001Cu-Lg for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 00:27:12 -0400 Date: Tue, 06 Sep 2011 00:27:12 -0400 Message-Id: From: Eli Zaretskii To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Comments in Awk scripts not fontified with comment face X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) emacs -Q C-x C-f foo.awk RET Type "# something" (without quotes). The comment is not highlighted in the font-lock-comment face, as expected. comment-start and comment-start-skip seem to have reasonable values. In GNU Emacs 24.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-09-05 on fencepost configured using `configure '--enable-asserts' '--enable-checking' '--with-gif=no' '--with-tiff=no'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: RMAIL Minor modes in effect: shell-dirtrack-mode: t display-time-mode: t show-paren-mode: t savehist-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: o n SPC a s SPC p a r t SPC o f SPC t h e SPC s t a n d a l o n e SPC i n s t a l l e r SPC i s SPC t h e SPC o n l y SPC p r a c t i c a l SPC w a y . ESC O B RET ESC < ESC > ESC O D ESC O D SPC t h a t SPC d o e s n ' t SPC r e q u i r e SPC P y t h i o n ESC O D ESC O D DEL ESC O B ESC O D ESC O D ESC b a SPC ESC f SPC i n s t a l l a t i o n ESC q ESC O B C-c C-c ESC ! ESC O A RET ESC x ESC O A RET ESC O A RET C-s 0 8 : 1 8 : 4 1 ESC O B ESC [ 6 ~ ESC [ 6 ~ ESC O B ESC O B ESC O B ESC O B C-x C-x C-w C-x C-s C-x k RET C-u g ESC O A RET d d d C-x C-s ESC O B ESC O A C-u g ESC O A DEL e w RET d d n d d d d d d d d d d d d d d d d d d d d d C-x C-z C-x C-f f o o . a w k RET # SPC f o o RET ESC ~ C-x b RET C-x C-z ESC x r e p o r t - e m a c s - b u g RET Recent messages: Counting new messages...done (24) Saving file /home/e/eliz/INBOX... Wrote /home/e/eliz/INBOX [2 times] Computing summary lines...done 24 new messages read Showing message 673 Showing message 673...done No following nondeleted message (New file) Modification-flag cleared Load-path shadows: None found. Features: (shadow emacsbug cc-awk shell pcomplete comint ring newcomment flyspell ispell multi-isearch vc-bzr cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs qp rmailsum rmailmm message sendmail regexp-opt format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time paren cus-start cus-load time-date savehist saveplace tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) ------------=_1315562702-8219-1-- From unknown Sat Sep 06 14:23:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9448: 24.0.50; Comments in Awk scripts not fontified with comment face 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: Fri, 09 Sep 2011 10:10: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: To: Stefan Monnier , Eli Zaretskii , Glenn Morris Cc: 9448@debbugs.gnu.org Received: via spool by 9448-submit@debbugs.gnu.org id=B9448.13155630018650 (code B ref 9448); Fri, 09 Sep 2011 10:10:02 +0000 Received: (at 9448) by debbugs.gnu.org; 9 Sep 2011 10:10:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R1y24-0002FS-W8 for submit@debbugs.gnu.org; Fri, 09 Sep 2011 06:10:01 -0400 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 1R1y22-0002FL-W9 for 9448@debbugs.gnu.org; Fri, 09 Sep 2011 06:09:59 -0400 Received: (qmail 61648 invoked by uid 3782); 9 Sep 2011 10:05:54 -0000 Received: from acm.muc.de (pD95561CC.dip.t-dialin.net [217.85.97.204]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 09 Sep 2011 12:05:52 +0200 Received: (qmail 3788 invoked by uid 1000); 9 Sep 2011 10:02:09 -0000 Date: Fri, 9 Sep 2011 10:02:09 +0000 Message-ID: <20110909100209.GC2875@acm.acm> References: <20110907170147.GA5076@acm.acm> <20110907181429.GB5076@acm.acm> <20110908083311.GA2521@acm.acm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110908083311.GA2521@acm.acm> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Hi, everybody. On Thu, Sep 08, 2011 at 08:33:11AM +0000, Alan Mackenzie wrote: > I've tried :syntax-table nil [in the define-derived-mode macro], and > this doesn't generate awk-mode-syntax-table. It appears to work. I've just committed this fix and marked the bug as fixed. -- Alan Mackenzie (Nuremberg, Germany).