mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
; * lisp/subr.el (take-while): bytecode micro-optimisation
This commit is contained in:
parent
a06cddec20
commit
893e0783c9
1 changed files with 2 additions and 2 deletions
|
|
@ -1148,8 +1148,8 @@ side-effects, and the argument LIST is not modified."
|
|||
(make-symbol "f")))
|
||||
(r (make-symbol "r")))
|
||||
`(let (,@(and f `((,f ,pred)))
|
||||
(,tail ,list)
|
||||
(,r nil))
|
||||
(,r nil)
|
||||
(,tail ,list))
|
||||
(while (and ,tail (funcall ,(or f pred) (car ,tail)))
|
||||
(push (car ,tail) ,r)
|
||||
(setq ,tail (cdr ,tail)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue