bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18923: Alternative scrolling model


From: Stefan Monnier
Subject: bug#18923: Alternative scrolling model
Date: Sun, 02 Nov 2014 10:56:15 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

>> (cl-incf ammount vscroll)
> Why not use '(setq amount (+ amount vscroll))' instead?  It should be
> marginally faster.

No, it's identical:

   (macroexpand '(cl-incf ammount vscroll))
   => (setq ammount (+ ammount vscroll))

> why is it a good idea to use cl-reduce here,

Because it's a lot more concise.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]