From: ueno Date: Tue, 7 May 2002 01:52:30 +0000 (+0000) Subject: * gettext.el (gettext-mapcar*): Eliminate recursion. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=961daace815990efd4d54296d82d0092633b1717;p=elisp%2Fliece.git * gettext.el (gettext-mapcar*): Eliminate recursion. --- diff --git a/lisp/gettext.el b/lisp/gettext.el index 5e9cbe9..31f5740 100644 --- a/lisp/gettext.el +++ b/lisp/gettext.el @@ -133,10 +133,11 @@ (defun gettext-mapcar* (function &rest args) "Apply FUNCTION to successive cars of all ARGS. Return the list of results." - (unless (memq nil args) - (cons (apply function (mapcar #'car args)) - (apply #'gettext-mapcar* function - (mapcar #'cdr args))))) + (let (result) + (while (not (memq nil args)) + (push (apply function (mapcar #'car args)) result) + (setq args (mapcar #'cdr args))) + (nreverse result))) (defun gettext-load-message-catalogue (file) (with-temp-buffer