GNU bug report logs - #18923
Alternative scrolling model

Previous Next

Package: emacs;

Reported by: E Sabof <esabof <at> gmail.com>

Date: Sun, 2 Nov 2014 01:17:03 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 18923 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18923 <at> debbugs.gnu.org, E Sabof <esabof <at> gmail.com>
Subject: Re: bug#18923: Alternative scrolling model
Date: Sun, 02 Nov 2014 10:56:15 -0500
>> (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




This bug report was last modified 3 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.