From: Stefan Monnier Date: Thu, 5 Oct 2000 23:47:14 +0000 (+0000) Subject: (compile-collect-regexps): Use dolist and push. X-Git-Tag: emacs-pretest-21.0.90~1117 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=02c1bd081b9fb5f8fc59bd7c14bd89c58736bd91;p=emacs.git (compile-collect-regexps): Use dolist and push. --- diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 44556d8185f..77bf8bf0ad0 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -1987,11 +1987,8 @@ An error message with no file name and no file name has been seen earlier")) ;; Add elements to variable compilation-regexps that is bound in ;; compilation-parse-errors. (and (not (eq this t)) - (while this - (setq compilation-regexps - (cons (cons (car (car this)) (cons type (cdr (car this)))) - compilation-regexps)) - (setq this (cdr this))))) + (dolist (el this) + (push (cons (car el) (cons type (cdr el))) compilation-regexps)))) (defun compile-buffer-substring (index) "Get substring matched by INDEXth subexpression."