aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/map.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el
index 4e7d3b91b16..ea56efefe97 100644
--- a/lisp/emacs-lisp/map.el
+++ b/lisp/emacs-lisp/map.el
@@ -262,8 +262,9 @@ MAP can be a list, hash-table or array."
262MAP can be a list, hash-table or array." 262MAP can be a list, hash-table or array."
263 (catch 'map--break 263 (catch 'map--break
264 (map-apply (lambda (key value) 264 (map-apply (lambda (key value)
265 (when (funcall pred key value) 265 (let ((result (funcall pred key value)))
266 (throw 'map--break (cons key value)))) 266 (when result
267 (throw 'map--break result))))
267 map) 268 map)
268 nil)) 269 nil))
269 270