all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: emacs-devel@gnu.org
Cc: Cody Goodman <codygman.consulting@gmail.com>
Subject: Re: Help debugging elisp and emacs display engine
Date: Thu, 26 Nov 2015 20:51:06 -0800	[thread overview]
Message-ID: <1A3877D6-8A19-4C3F-A42D-93BD907992F1@gmail.com> (raw)
In-Reply-To: <CADq_+R3Ser5G3-EobyBA3hP5v8ofOM-_r=+n=iCuh0iOS7uk9Q@mail.gmail.com>


> (defun test-long-line-scrolling (n)
>   (with-selected-window (get-buffer-window "long-lines-file-test-emacs.txt")
>     (goto-char (point-max))
>     (dolist '(number-sequence 0 n)
>       (scroll-down))))
> 
> ;; TODO: lookup how benchmark works
> (benchmark 10 (test-long-line-scrolling 100))

In addition to what Noam said, you seem to be misusing `dolist'. 

Try (dolist (_ (number-sequence 0 n)) ...)

Or, better, (dotimes (_ n) ...)

-- 
john


      parent reply	other threads:[~2015-11-27  4:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-26 23:35 Help debugging elisp and emacs display engine Cody Goodman
2015-11-27  4:32 ` Noam Postavsky
2015-11-27  4:51 ` John Mastro [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1A3877D6-8A19-4C3F-A42D-93BD907992F1@gmail.com \
    --to=john.b.mastro@gmail.com \
    --cc=codygman.consulting@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.