[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Q on Text Properties popup menu - shouldn't it usethepointerposition
From: |
Drew Adams |
Subject: |
RE: Q on Text Properties popup menu - shouldn't it usethepointerposition, not the cursor position? |
Date: |
Sat, 25 Jun 2005 18:26:46 -0700 |
bug: Each time I use the Text Properties menu I get
this message: "<C-drag-mouse-2> is undefined".
Apparently, the mouse drag through the menu is causing a C-drag-mouse-2
event, which is then treated as pending input.
This messes up use of a menu item that I've added locally. The new menu item
reads input, and it gets confused by the extra pending input. That's how I
came across the bug and why it bothers me.
Do this, as a test:
(easy-menu-do-add-item facemenu-menu ["Test" test-fn t])
(defun test-fn ()
(interactive)
(message "last input event: %s, input-pending-p: %s"
last-input-event (input-pending-p))
(sleep-for 5))
Choose item "Test" in the facemenu-menu, via C-mouse-2.
I see this message:
last input event: Test, input-pending-p: t
After the sleep-for, I see this in the echo area:
<C-drag-mouse-2> is undefined
If I put a `read-char' in the test-fn, it chokes on the pending non-keyboard
input event C-drag-mouse-2, showing that this is indeed the guilty pending
event.
If I access the same Test menu item from the menu-bar (Edit > Test
Properties > Test), I see this:
last input event: Test, input-pending-p: nil
So this is really a problem for the popup mouse menu (only).
- Q on Text Properties popup menu - shouldn't it use the pointer position, not the cursor position?, Drew Adams, 2005/06/24
- Re: Q on Text Properties popup menu - shouldn't it use the pointer position, not the cursor position?, Luc Teirlinck, 2005/06/24
- RE: Q on Text Properties popup menu - shouldn't it use the pointerposition, not the cursor position?, Drew Adams, 2005/06/24
- RE: Q on Text Properties popup menu - shouldn't it use the pointerposition, not the cursor position?, Drew Adams, 2005/06/24
- Re: Q on Text Properties popup menu - shouldn't it use the pointerposition, not the cursor position?, Luc Teirlinck, 2005/06/24
- RE: Q on Text Properties popup menu - shouldn't it use thepointerposition, not the cursor position?, Drew Adams, 2005/06/24
- RE: Q on Text Properties popup menu - shouldn't it use thepointerposition, not the cursor position?, Drew Adams, 2005/06/25
- Re: Q on Text Properties popup menu - shouldn't it use thepointerposition, not the cursor position?, Luc Teirlinck, 2005/06/25
- RE: Q on Text Properties popup menu - shouldn't it usethepointerposition, not the cursor position?, Drew Adams, 2005/06/25
- Re: Q on Text Properties popup menu - shouldn't it use thepointerposition, not the cursor position?, Luc Teirlinck, 2005/06/25
- RE: Q on Text Properties popup menu - shouldn't it usethepointerposition, not the cursor position?,
Drew Adams <=
- RE: Q on Text Properties popup menu - shouldn't it usethepointerposition, not the cursor position?, Drew Adams, 2005/06/25
- RE: Q on Text Properties popup menu - shouldn't itusethepointerposition, not the cursor position?, Drew Adams, 2005/06/26
- RE: Q on Text Properties popup menu - shouldn't itusethepointerposition, not the cursor position?, Drew Adams, 2005/06/26
- Re: Q on Text Properties popup menu - shouldn't itusethepointerposition, not the cursor position?, Richard M. Stallman, 2005/06/27
- Do Re Mi (was: Q on Text Properties popup menu - shouldn'titusethepointerposition, not the cursor position?), Drew Adams, 2005/06/27
- Re: Do Re Mi (was: Q on Text Properties popup menu - shouldn'titusethepointerposition, not the cursor position?), Richard M. Stallman, 2005/06/28
- RE: Do Re Mi (was: Q on Text Properties popup menu -shouldn'titusethepointerposition, not the cursor position?), Drew Adams, 2005/06/28
- Re: Do Re Mi (was: Q on Text Properties popup menu -shouldn'titusethepointerposition, not the cursor position?), Robert J. Chassell, 2005/06/28
- RE: Do Re Mi (was: Q on Text Properties popup menu-shouldn'titusethepointerposition, not the cursor position?), Drew Adams, 2005/06/28
- Re: Do Re Mi (was: Q on Text Properties popup menu-shouldn'titusethepointerposition, not the cursor position?), Robert J. Chassell, 2005/06/28