aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-01-30 07:24:51 +0000
committerRichard M. Stallman1999-01-30 07:24:51 +0000
commit79c48ffe93ed1b2b9ffb33654deebed864096c89 (patch)
tree011920ee3fc43fdda38056d9df986ad0b1288394
parent3bc5a5ee9a1731d71081ca4412dda3117f18380d (diff)
downloademacs-79c48ffe93ed1b2b9ffb33654deebed864096c89.tar.gz
emacs-79c48ffe93ed1b2b9ffb33654deebed864096c89.zip
(gametree-default-score): Use defcustom.
(gametree-score-regexp, gametree-score-closer): Likewise. (gametree-score-manual-flag, gametree-score-opener): Likewise.
-rw-r--r--lisp/play/gametree.el30
1 files changed, 20 insertions, 10 deletions
diff --git a/lisp/play/gametree.el b/lisp/play/gametree.el
index 38a8d631517..44c08f15741 100644
--- a/lisp/play/gametree.el
+++ b/lisp/play/gametree.el
@@ -138,16 +138,22 @@ file, the local value will be saved there and restored the next time
138the file is visited (subject to the usual restriction via 138the file is visited (subject to the usual restriction via
139`enable-local-variables'), and the layout will be set accordingly.") 139`enable-local-variables'), and the layout will be set accordingly.")
140 140
141(defvar gametree-score-opener "{score=" 141(defcustom gametree-score-opener "{score="
142 "*The string which opens a score tag, and precedes the actual score.") 142 "*The string which opens a score tag, and precedes the actual score."
143 :type 'string
144 :group gametree)
143 145
144(defvar gametree-score-manual-flag "!" 146(defcustom gametree-score-manual-flag "!"
145 "*String marking the line as manually (as opposed to automatically) scored.") 147 "*String marking the line as manually (as opposed to automatically) scored."
148 :type 'string
149 :group gametree)
146 150
147(defvar gametree-score-closer "}" 151(defcustom gametree-score-closer "}"
148 "*The string which closes a score tag, and follows the actual score.") 152 "*The string which closes a score tag, and follows the actual score."
153 :type 'string
154 :group gametree)
149 155
150(defvar gametree-score-regexp 156(defcustom gametree-score-regexp
151 (concat "[^\n\^M]*\\(" 157 (concat "[^\n\^M]*\\("
152 (regexp-quote gametree-score-opener) 158 (regexp-quote gametree-score-opener)
153 "[ ]*\\(" 159 "[ ]*\\("
@@ -162,10 +168,14 @@ second parenthetical group should be an optional flag that marks the
162line as *manually* (as opposed to automatically) scored, which 168line as *manually* (as opposed to automatically) scored, which
163prevents the program from recursively applying the scoring algorithm 169prevents the program from recursively applying the scoring algorithm
164on the subtree headed by the marked line, and makes it use the manual 170on the subtree headed by the marked line, and makes it use the manual
165score instead.") 171score instead."
172 :type 'regexp
173 :group gametree)
166 174
167(defvar gametree-default-score 0 175(defcustom gametree-default-score 0
168 "*Score to assume for branches lacking score tags.") 176 "*Score to assume for branches lacking score tags."
177 :type 'integer
178 :group gametree)
169 179
170;;;; Helper functions 180;;;; Helper functions
171 181