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

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

bug#9830: 23.3.50; y-or-n-p-with-timeout with GUI leaks memory


From: YAMAMOTO Mitsuharu
Subject: bug#9830: 23.3.50; y-or-n-p-with-timeout with GUI leaks memory
Date: Mon, 31 Oct 2011 12:21:14 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Sun, 30 Oct 2011 18:41:40 +0100, Jan Djärv <jan.h.d@swipnet.se> said:

>> The patch below uses record_unwind_protect as usual for avoiding
>> this memory leak.  I think xmenu_show has the same problem.  I'm
>> not sure about the W32 case.
>> 

> You are correct.  Can you install the patch?

Done.

> As for xmenu_show, is there a case where a menu can be interrupted
> like this?

Yes.  For example,

  (with-timeout (3 'default)
    (x-popup-menu t '("Title" ("foo" "nonselectable"))))

Actually, y-or-n-p-with-timeout is implemented using with-timeout.

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




reply via email to

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