Commit 14cfebb9 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(cvs-map): Avoid recursion :-(

parent 59429511
2008-04-07 Stefan Monnier <>
* pcvs-util.el (cvs-map): Avoid recursion :-(
2008-04-07 Glenn Morris <>
* calendar/calendar.el (calendar-mode-map): Replace use of kbd.
......@@ -51,9 +51,11 @@
(unless (member x ys) (push x zs)))))
(defun cvs-map (-cvs-map-f &rest -cvs-map-ls)
(unless (cvs-every 'null -cvs-map-ls)
(cons (apply -cvs-map-f (mapcar 'car -cvs-map-ls))
(apply 'cvs-map -cvs-map-f (mapcar 'cdr -cvs-map-ls)))))
(let ((accum ()))
(while (not (cvs-every 'null -cvs-map-ls))
(push (apply -cvs-map-f (mapcar 'car -cvs-map-ls)) accum)
(setq -cvs-map-ls (mapcar 'cdr -cvs-map-ls)))
(nreverse accum)))
(defun cvs-first (l &optional n)
(if (null n) (car l)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment