[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help debugging elisp and emacs display engine
From: |
John Mastro |
Subject: |
Re: Help debugging elisp and emacs display engine |
Date: |
Thu, 26 Nov 2015 20:51:06 -0800 |
> (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