[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No refresh of buffer before popup-menu
From: |
Lennart Borgman (gmail) |
Subject: |
No refresh of buffer before popup-menu |
Date: |
Tue, 20 Feb 2007 19:12:40 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 |
There still seems to be some problems with refreshing buffer contents.
In the example below the buffer gets refreshed before the first popup
menu, but not before the second popup menu.
Do
emacs -Q
Paste the code into *scratch* and eval it:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
(defun temp-test1()
(interactive)
(goto-char (point-max))
(insert ";; SOME STRING 1\n")
(sit-for 0)
(let ((pop-map (make-sparse-keymap "Temp map 1")))
(define-key pop-map [pop-map-test]
(list 'menu-item
"This 1"
'temp-test2
))
(popup-menu pop-map)))
(defun temp-test2()
(interactive)
(goto-char (point-max))
(insert ";; SOME STRING 2\n")
(sit-for 0)
(let ((pop-map (make-sparse-keymap "Temp map 2")))
(define-key pop-map [pop-map-test]
(list 'menu-item
"This 2"
(lambda()
(interactive)
(message "This is 2!"))))
(popup-menu pop-map)))
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Then first do
M-x temp-test1
Note that the text SOME STRING 1 gets insert into the buffer before the
first popup menu is shown. However the second string SOME STRING 2 does
not get inserted before the second popup menu.
Then do
M-x temp-test2
Now SOME STRING 2 gets insert inserted in the buffer before the popup menu.
So there seem to be a problem with refresh and 2 popup menus in a row.
In GNU Emacs 22.0.93.1 (i386-mingw-nt5.1.2600)
of 2007-02-19 on LENNART-69DE564
- No refresh of buffer before popup-menu,
Lennart Borgman (gmail) <=
- Re: No refresh of buffer before popup-menu, Jason Rumney, 2007/02/21
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/21
- Re: No refresh of buffer before popup-menu, Jason Rumney, 2007/02/21
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/21
- Re: No refresh of buffer before popup-menu, Jason Rumney, 2007/02/21
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/21
- Re: No refresh of buffer before popup-menu, Eli Zaretskii, 2007/02/21
- Re: No refresh of buffer before popup-menu, martin rudalics, 2007/02/22
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/22
- Re: No refresh of buffer before popup-menu, Kim F. Storm, 2007/02/22