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

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

Re: No refresh of buffer before popup-menu


From: Lennart Borgman (gmail)
Subject: Re: No refresh of buffer before popup-menu
Date: Thu, 22 Feb 2007 22:29:14 +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

Jason Rumney wrote:

Here is the end of x-popup-menu in w32menu.c. It looks to me like the menu structure is freed before "selection" is used. Obviously you think otherwise, Jason. Can you explain to me what is happening here? Does perhaps w32_menu_show do more than the name suggests?
discard_menu_items frees up the lisp menu structure for garbage collection. There is another copy of the menu structure in global variable wv, that is used by the C code that needs it.

Thanks, but is there a global variable wv? Do you mean current_popup_menu? Is that what is freed in w32_free_menu_strings? That is called right after discard_menu_item.

So I still do not understand.




reply via email to

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