changeset 38100:c18732fcfbab

(antlr-mode): Check that `c-Java-access-key' is bound. Suggested by David B. Malkovsky <David.Malkovsky@sas.com>.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 18 Jun 2001 11:21:57 +0000
parents 3255cb9d0be2
children e91865c7022a
files lisp/progmodes/antlr-mode.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/antlr-mode.el	Mon Jun 18 11:02:45 2001 +0000
+++ b/lisp/progmodes/antlr-mode.el	Mon Jun 18 11:21:57 2001 +0000
@@ -1,6 +1,6 @@
 ;;; antlr-mode.el --- Major mode for ANTLR grammar files
 
-;; Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+;; Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 ;;
 ;; Author: Christoph.Wedler@sap.com
 ;; Version: 1.4
@@ -1494,7 +1494,7 @@
 	  c-method-key nil
 	  c-baseclass-key nil
 	  c-recognize-knr-p nil
-	  c-access-key c-Java-access-key)
+	  c-access-key (and (boundp 'c-Java-access-key) c-Java-access-key))
     (and (boundp 'c-inexpr-class-key) (boundp 'c-Java-inexpr-class-key)
 	 (setq c-inexpr-class-key c-Java-inexpr-class-key)))
   ;; various -----------------------------------------------------------------