From unknown Sat Jun 21 10:18:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1074 <1074@debbugs.gnu.org> To: bug#1074 <1074@debbugs.gnu.org> Subject: Status: antlr-mode has undefined variable keyword-face Reply-To: bug#1074 <1074@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:18:54 +0000 retitle 1074 antlr-mode has undefined variable keyword-face=20 reassign 1074 emacs submitter 1074 "David J. Biesack" severity 1074 normal thanks From David.Biesack@sas.com Fri Oct 3 07:06:34 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Oct 2008 14:06:34 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m93E6UL4031512 for ; Fri, 3 Oct 2008 07:06:31 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KllIb-0000Qs-Lb for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 10:06:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KllIa-0000QY-2f for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 10:06:28 -0400 Received: from [199.232.76.173] (port=49649 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KllIZ-0000QV-Fa for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 10:06:27 -0400 Received: from mercav05.na.sas.com ([149.173.6.148]:1545) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KllIY-0007Mw-WE for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 10:06:27 -0400 Received: from d16922.us.sas.com ([10.40.12.239]) by mercav05.na.sas.com with InterScan Message Security Suite; Fri, 03 Oct 2008 10:05:40 -0400 Date: Fri, 03 Oct 2008 10:05:39 -0400 Message-Id: From: "David J. Biesack" To: bug-gnu-emacs@gnu.org cc: Christoph.Wedler@sap.com Subject: antlr-mode has undefined variable keyword-face Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mime-Autoconverted: from 8bit to quoted-printable by mime827 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Open a .g file in Emacs, where auto-mode-alist configures .g files to use antlr-mode. You get an error in font-lock code because of an undefined variable, 'keyword-face' This patch appears to resolve the problem: diff -cws antlr-mode.el.orig antlr-mode.el *** antlr-mode.el.orig Fri Oct 3 09:58:33 2008 --- antlr-mode.el Sun Jan 14 03:46:56 2007 *************** *** 922,928 **** `((antlr-invalidate-context-cache) ("\\$setType[ \t]*(\\([A-Za-z\300-\326\330-\337]\\sw*\\))" (1 antlr-tokendef-face)) ! ("\\$\\sw+" (0 antlr-keyword-face)) ;; the tokens are already fontified as string/docstrings: (,(lambda (limit) (if antlr-font-lock-literal-regexp --- 922,928 ---- `((antlr-invalidate-context-cache) ("\\$setType[ \t]*(\\([A-Za-z\300-\326\330-\337]\\sw*\\))" (1 antlr-tokendef-face)) ! ("\\$\\sw+" (0 keyword-face)) ;; the tokens are already fontified as string/docstrings: (,(lambda (limit) (if antlr-font-lock-literal-regexp Debugger entered--Lisp error: (void-variable keyword-face) eval(keyword-face) font-lock-fontify-keywords-region(1 1979 t) font-lock-default-fontify-region(1 1979 t) font-lock-fontify-region(1 1979 t) byte-code("=C2=8A=C3=83 =18=C3=84=C2=8E=C3=85ed #=C2=88=C3=86 =C2= =88=C3=87=C2=89=12+=C2=87" [save-match-data-internal verbose font-lock-f= ontified match-data ((byte-code "=C3=81=08=C3=82\"=C2=87" [save-match-da= ta-internal set-match-data evaporate] 3)) font-lock-fontify-region font-= lock-after-fontify-buffer t] 4) font-lock-default-fontify-buffer() font-lock-fontify-buffer() font-lock-mode-internal(t) font-lock-default-function(t) font-lock-mode() turn-on-font-lock() turn-on-font-lock-if-enabled() global-font-lock-mode-enable-in-buffers() run-hooks(after-change-major-mode-hook) run-mode-hooks(antlr-mode-hook) antlr-mode() set-auto-mode-0(antlr-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/eclipse-workspaces/acl/antlr= _test/source/java/Greet.g" nil nil "~/eclipse-workspaces/acl/ANTLR_test/= Source/Java/Greet.g" (26662 (36053 . 4313))) ad-Orig-find-file-noselect("~/eclipse-workspaces/acl/antlr_test/source= /java/Greet.g" nil nil nil) byte-code("=C3=86=18=C3=87 !=C2=89=1A=C2=83=12 $=C2=89=10)=C2=87" [ad-return-value filename dir nowarn rawfile wildcard= s nil file-name-directory downcase file-name-nondirectory ad-Orig-find-f= ile-noselect] 6) find-file-noselect("~/eclipse-workspaces/acl/ANTLR_test/Source/Java/Gr= eet.g" nil nil nil) find-file("~/eclipse-workspaces/acl/ANTLR_test/Source/Java/Greet.g") byte-code("=C3=82 =C2=83=0F new-find-alternate-file("~/eclipse-workspaces/acl/ANTLR_test/Source/Ja= va/Greet.g") call-interactively(new-find-alternate-file) recursive-edit() byte-code("=C3=86=10 @=C3=87=3D=C2=83! V=C2=83W =C2=A5y=C2=88`=1E=1Bdb=C2=88=C3=92 =C2=A5 Zy=C2=88=0E=1B`|=C2=88)=C3=93c=C2=88eb=C2=88=C3=94=C3=95=C3=96 \"=C2=88=C3= =97 =C2=88=C3=94=C3=98!=C2=88=C3=99=C3=8A=1E=1C=1E=1D=C3=94=C3=98!=C2=88= =C2=8A=C3=9A =C2=88+=C3=99=C2=87" [unread-command-char debugger-args x d= ebugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrac= e-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugge= r-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-ema= cs "" nil recursive-edit middlestart buffer-read-only standard-output] 4= ) debug(error (void-variable keyword-face)) apply(debug error (void-variable keyword-face)) edebug(error (void-variable keyword-face)) eval(keyword-face) font-lock-fontify-keywords-region(1 1979 t) font-lock-default-fontify-region(1 1979 t) font-lock-fontify-region(1 1979 t) byte-code("=C2=8A=C3=83 =18=C3=84=C2=8E=C3=85ed #=C2=88=C3=86 =C2= =88=C3=87=C2=89=12+=C2=87" [save-match-data-internal verbose font-lock-f= ontified match-data ((byte-code "=C3=81=08=C3=82\"=C2=87" [save-match-da= ta-internal set-match-data evaporate] 3)) font-lock-fontify-region font-= lock-after-fontify-buffer t] 4) font-lock-default-fontify-buffer() font-lock-fontify-buffer() font-lock-mode-internal(t) font-lock-default-function(t) font-lock-mode() turn-on-font-lock() turn-on-font-lock-if-enabled() global-font-lock-mode-enable-in-buffers() run-hooks(after-change-major-mode-hook) run-mode-hooks(antlr-mode-hook) antlr-mode() set-auto-mode-0(antlr-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/eclipse-workspaces/acl/antlr_= test/source/java/Greet.g" nil nil "~/eclipse-workspaces/acl/ANTLR_test/S= ource/Java/Greet.g" (26662 (36053 . 4313))) ad-Orig-find-file-noselect("~/eclipse-workspaces/acl/antlr_test/source= /java/Greet.g" nil nil nil) byte-code("=C3=86=18=C3=87 !=C2=89=1A=C2=83=12 $=C2=89=10)=C2=87" [ad-return-value filename dir nowarn rawfile wildcard= s nil file-name-directory downcase file-name-nondirectory ad-Orig-find-f= ile-noselect] 6) find-file-noselect("~/eclipse-workspaces/acl/ANTLR_test/Source/Java/Gr= eet.g" nil nil nil) find-file("~/eclipse-workspaces/acl/ANTLR_test/Source/Java/Greet.g") byte-code("=C3=82 =C2=83=0F new-find-alternate-file("~/eclipse-workspaces/acl/ANTLR_test/Source/Ja= va/Greet.g") call-interactively(new-find-alternate-file) In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/incl= ude' 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: ENU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Antlr.Java/l Minor modes in effect: display-time-mode: t shell-dirtrack-mode: t delete-selection-mode: t pc-selection-mode: t show-paren-mode: t iswitchb-mode: t encoded-kbd-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: X M-b M-b M-b M-b C-b C-b C-b C-d C-e M-< C-x * c d SPC ~ / e m a c s C-x o X M-b C-M-f C-SPC M-b M-b M-b M-b M-b M-b M-w C-g C-x o C-y C-x o ( g e t e n v SPC " T E R M " ) C-x C-o C-x o e c h o SPC $ T E R M e x p o r t SPC T E R M =3D c m d M-p M-p M-p C-x o C-v C-x k SPC C-x B C-x B C-x o C-x j E M-< C-x C-f M-b . C-e C-s k e y w o r d - C-w C-s C-s C-s C-s C-a C-x o C-n C-n C-n C-x o C-x b a n t C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a M-< M-x p w d C-s a n t l r - SPC k e y w o r d - C-SPC M-b C-SPC a n t l r - C-s C-w C-w C-s C-a C-SPC C-o C-o C-o C-o C-o M-x e a l v a l - d e f SPC M-x C-g C-/ C-x C-w a n l SPC t SPC . r o r i g a n t l r - C-a C-x C-s C-x c M-x e v a l - d e SPC C-x o C-x b G r e e C-/ C-SPC C-x k SPC C-z 0 C-n C-n C-n M-x r e p o r t - SPC Recent messages: undo-start: No undo information in this buffer Mark set Kill buffer Greet.g? (y or n) Invalid face reference: font-lock-keyword-face [43 times] Invalid face reference: highlight Invalid face reference: font-lock-keyword-face Invalid face reference: highlight [2 times] Fontifying Greet.g... (regexps......................) Fontifying Greet.g... (regexps......................) Loading emacsbug...done -- David J. Biesack SAS Institute Inc. (919) 531-7771 SAS Campus Drive http://www.sas.com Cary, NC 27513 From rgm@gnu.org Sat Oct 4 11:38:17 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1074-done) by emacsbugs.donarmstrong.com; 4 Oct 2008 18:38:18 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m94IcFIu004455 for <1074-done@emacsbugs.donarmstrong.com>; Sat, 4 Oct 2008 11:38:16 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KmByt-0001FS-BB; Sat, 04 Oct 2008 14:35:55 -0400 From: Glenn Morris To: 1074-done@debbugs.gnu.org Subject: Re: bug#1074: antlr-mode has undefined variable keyword-face References: X-Spook: lynch supercomputer Consul David John Oates threat Al X-Ran: +rz'_c)D_.:|5j~wDO's"+/Xq\Wuq/Hzr,"_W.9TN9jroN*&su1xBNnf4C/\88T>N>kG?h X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 04 Oct 2008 14:35:55 -0400 In-Reply-To: (David J. Biesack's message of "Fri, 03 Oct 2008 10:05:39 -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 "David J. Biesack" wrote: > Open a .g file in Emacs, where auto-mode-alist configures > .g files to use antlr-mode. You get an error in font-lock > code because of an undefined variable, 'keyword-face' > > This patch appears to resolve the problem: Thanks; applied. (Your patch was backwards somehow.) From unknown Sat Jun 21 10:18:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 Nov 2008 15:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator