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

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

Re: mouse-drag-region when mouse-autoselect-window is set to t


From: Kim F. Storm
Subject: Re: mouse-drag-region when mouse-autoselect-window is set to t
Date: Tue, 11 Jan 2005 15:09:42 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Klaus Zeitler <address@hidden> writes:

> I've tried it a few times:
>
> 1. start emacs -q --no-site-file
> 2. in scratch buffer eval (setq mouse-autoselect-window t)
> 3. load a file e.g. ~/.emacs.el

It works fine for me on X/GNU/Linux.

> Maybe this is a Solaris specific problem. How should I go about testing this
> odd behavior?

Perhaps you could add code like this to mouse-drag-region-1:

    (let (event end end-point last-end-point (end-of-range (point)))
      (setq md-trace nil)  ;; ADD
      (track-mouse
        (while (progn
                 (setq event (read-event))
                 (setq md-trace (cons event md-trace))  ;; ADD
                 (or (mouse-movement-p event)
                     (eq (car-safe event) 'switch-frame)))


Then look at md-trace after dragging the mouse to see what events
were processes by emacs during the drag -- and then compare what
happens when you drag slowly and faster...

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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