From 59d1008283f339d6c6d146979c4cff0c6430b095 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 16 May 2002 17:28:18 +0000 Subject: miscellaneous fixes --- chess-pgn.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'chess-pgn.el') diff --git a/chess-pgn.el b/chess-pgn.el index af212c5..c720ecf 100644 --- a/chess-pgn.el +++ b/chess-pgn.el @@ -237,9 +237,11 @@ If INDENTED is non-nil, indent the move texts." "\\(\\.\\.\\.\\|" chess-algebraic-regexp "\\)" "\\(\\s-+\\(" chess-algebraic-regexp "\\)\\)?\\)")) -(font-lock-add-keywords 'chess-pgn-mode - (list (list "\\[\\(\\S-+\\)\\s-+\".*\"\\]" 1 'font-lock-keyword-face) - (cons "\\(1-0\\|0-1\\|\\*\\)$" 'chess-pgn-bold-face))) +(if (fboundp 'font-lock-add-keywords) + (font-lock-add-keywords + 'chess-pgn-mode + (list (list "\\[\\(\\S-+\\)\\s-+\".*\"\\]" 1 'font-lock-keyword-face) + (cons "\\(1-0\\|0-1\\|\\*\\)$" 'chess-pgn-bold-face)))) ;;;###autoload (add-to-list 'auto-mode-alist '("\\.pgn\\'" . chess-pgn-mode)) -- cgit v1.2.3