summaryrefslogtreecommitdiff
path: root/chess-ply.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-ply.el')
-rw-r--r--chess-ply.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/chess-ply.el b/chess-ply.el
index 391264b..9db4ab7 100644
--- a/chess-ply.el
+++ b/chess-ply.el
@@ -63,11 +63,10 @@
(setcdr ply changes))
(defun chess-ply-has-keyword (ply &rest keywords)
- (let (found)
+ (catch 'found
(dolist (keyword keywords)
(if (memq keyword (chess-ply-changes ply))
- (setq found t)))
- found))
+ (throw found keyword)))))
(defsubst chess-ply-source (ply)
(car (chess-ply-changes ply)))