diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-05-16 17:28:18 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-05-16 17:28:18 +0000 |
| commit | 59d1008283f339d6c6d146979c4cff0c6430b095 (patch) | |
| tree | 530b969e5568e51caf57dc230a544e141c26bec1 /chess-pgn.el | |
| parent | 86493efa7a72ecda178e0ec5e7123c9761a61046 (diff) | |
miscellaneous fixes
Diffstat (limited to 'chess-pgn.el')
| -rw-r--r-- | chess-pgn.el | 8 |
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)) |
