all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12384: 24.2.50; NS: mouse movement causes hang during scroll benchmark
@ 2012-09-08  8:36 YAMAMOTO Mitsuharu
  2012-10-12 17:51 ` Jan Djärv
  0 siblings, 1 reply; 2+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-09-08  8:36 UTC (permalink / raw)
  To: 12384

Steps to Reproduce:

1. $ .../Emacs.app/Contents/MacOS/Emacs -Q &
2. Evaluate the following expression:

;; Scroll benchmark from
;; http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00411.html
(defun scroll-benchmark () 
   (interactive) 
   (let ((oldgc gcs-done) 
         (oldtime (float-time))) 
     (condition-case nil (while t (scroll-up) (redisplay)) 
       (error (message "GCs: %d Elapsed time: %f seconds" 
                       (- gcs-done oldgc) (- (float-time) oldtime)))))) 

3. Evaluate the following expression:

(progn
  (find-file (expand-file-name "src/xdisp.c" source-directory))
  (goto-char (point-min))
  (redisplay)
  (scroll-benchmark))

4. Wait for the benchmark to finish.
5. Repeat Step 3.
6. Before the second benchmark run completes, move the mouse pointer.

Then, we can observe the followings until the benchmark finishes.

  - The scroll bar thumb stops moving.
  - The mouse pointer turns into the "spinning rainbow".
  - C-g cannot quit the benchmark.

This does not happen on X11 builds or the Mac port.

See also
http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00469.html .

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

In GNU Emacs 24.2.50.1 (x86_64-apple-darwin12.1.0, NS apple-appkit-1187.00)
 of 2012-09-08 on YAMAMOTO-no-iMac.local
Bzr revision: 109934 monnier@iro.umontreal.ca-20120907201455-blix9xyqrsksqwyz
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure '--with-ns''

Important settings:
  value of $LANG: ja_JP.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#12384: 24.2.50; NS: mouse movement causes hang during scroll benchmark
  2012-09-08  8:36 bug#12384: 24.2.50; NS: mouse movement causes hang during scroll benchmark YAMAMOTO Mitsuharu
@ 2012-10-12 17:51 ` Jan Djärv
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Djärv @ 2012-10-12 17:51 UTC (permalink / raw)
  To: YAMAMOTO Mitsuharu; +Cc: 12384-done

Hello.

This has been fixed in the trunk.

	Jan D.

8 sep 2012 kl. 10:36 skrev YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>:

> Steps to Reproduce:
> 
> 1. $ .../Emacs.app/Contents/MacOS/Emacs -Q &
> 2. Evaluate the following expression:
> 
> ;; Scroll benchmark from
> ;; http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00411.html
> (defun scroll-benchmark () 
>   (interactive) 
>   (let ((oldgc gcs-done) 
>         (oldtime (float-time))) 
>     (condition-case nil (while t (scroll-up) (redisplay)) 
>       (error (message "GCs: %d Elapsed time: %f seconds" 
>                       (- gcs-done oldgc) (- (float-time) oldtime)))))) 
> 
> 3. Evaluate the following expression:
> 
> (progn
>  (find-file (expand-file-name "src/xdisp.c" source-directory))
>  (goto-char (point-min))
>  (redisplay)
>  (scroll-benchmark))
> 
> 4. Wait for the benchmark to finish.
> 5. Repeat Step 3.
> 6. Before the second benchmark run completes, move the mouse pointer.
> 
> Then, we can observe the followings until the benchmark finishes.
> 
>  - The scroll bar thumb stops moving.
>  - The mouse pointer turns into the "spinning rainbow".
>  - C-g cannot quit the benchmark.
> 
> This does not happen on X11 builds or the Mac port.
> 
> See also
> http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00469.html .
> 
> 				     YAMAMOTO Mitsuharu
> 				mituharu@math.s.chiba-u.ac.jp
> 
> In GNU Emacs 24.2.50.1 (x86_64-apple-darwin12.1.0, NS apple-appkit-1187.00)
> of 2012-09-08 on YAMAMOTO-no-iMac.local
> Bzr revision: 109934 monnier@iro.umontreal.ca-20120907201455-blix9xyqrsksqwyz
> Windowing system distributor `Apple', version 10.3.1187
> Configured using:
> `configure '--with-ns''
> 
> Important settings:
>  value of $LANG: ja_JP.UTF-8
>  locale-coding-system: utf-8-unix
>  default enable-multibyte-characters: t
> 
> Major mode: Lisp Interaction
> 
> Minor modes in effect:
>  tooltip-mode: t
>  mouse-wheel-mode: t
>  tool-bar-mode: t
>  menu-bar-mode: t
>  file-name-shadow-mode: t
>  global-font-lock-mode: t
>  font-lock-mode: t
>  blink-cursor-mode: t
>  auto-composition-mode: t
>  auto-encryption-mode: t
>  auto-compression-mode: t
>  line-number-mode: t
>  transient-mark-mode: t
> 
> 






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-12 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-08  8:36 bug#12384: 24.2.50; NS: mouse movement causes hang during scroll benchmark YAMAMOTO Mitsuharu
2012-10-12 17:51 ` Jan Djärv

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.