summaryrefslogtreecommitdiff
path: root/chess-pgn.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-05-16 17:28:18 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-05-16 17:28:18 +0000
commit59d1008283f339d6c6d146979c4cff0c6430b095 (patch)
tree530b969e5568e51caf57dc230a544e141c26bec1 /chess-pgn.el
parent86493efa7a72ecda178e0ec5e7123c9761a61046 (diff)
miscellaneous fixes
Diffstat (limited to 'chess-pgn.el')
-rw-r--r--chess-pgn.el8
1 files changed, 5 insertions, 3 deletions
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))