From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Menus with more items than the TTY can display Date: Fri, 18 Oct 2013 12:32:16 +0300 Message-ID: <8361suorfj.fsf@gnu.org> References: <83a9igrqq1.fsf@gnu.org> <5257E3B3.4070508@yandex.ru> <834n8nswas.fsf@gnu.org> <831u3nrhf9.fsf@gnu.org> <525D8938.6080208@gmx.at> <83hacipd88.fsf@gnu.org> <525E43D8.6060109@gmx.at> <83bo2pp7kd.fsf@gnu.org> <525ED0CE.9010001@gmx.at> <834n8hozdu.fsf@gnu.org> <525EDC1A.9070201@gmx.at> <83y55tnii4.fsf@gnu.org> <525FADCF.5010700@gmx.at> <83ob6nonry.fsf@gnu.org> <52601ACA.9070603@gmx.at> <83iowvokoj.fsf@gnu.org> <526025E8.20009@gmx.at> <83fvrzoe6o.fsf@gnu.org> <83eh7joda2.fsf@gnu.org> <5260E981.6020604@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382088748 31563 80.91.229.3 (18 Oct 2013 09:32:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 09:32:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 11:32:31 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VX6Q1-0002Rc-NQ for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 11:32:29 +0200 Original-Received: from localhost ([::1]:56566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX6Q1-00006t-9V for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 05:32:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX6Ps-0008Qd-O9 for emacs-devel@gnu.org; Fri, 18 Oct 2013 05:32:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX6Pn-0005i5-3H for emacs-devel@gnu.org; Fri, 18 Oct 2013 05:32:20 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:33346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX6Pm-0005hw-Ru for emacs-devel@gnu.org; Fri, 18 Oct 2013 05:32:15 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MUU00600YE3SG00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 18 Oct 2013 12:32:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MUU0062NYHOOI50@a-mtaout22.012.net.il>; Fri, 18 Oct 2013 12:32:12 +0300 (IDT) In-reply-to: <5260E981.6020604@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164295 Archived-At: > Date: Fri, 18 Oct 2013 09:55:45 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > > Also, it might be worthwhile to try this in GDB, after starting Emacs: > > > > (gdb) attach EMACS-PID > > (gdb) break update_frame_1 > > (gdb) commands > > > bt > > > continue > > > end > > (gdb) continue > > > > Now open the menu and do whatever you do to trigger the problem. > > I can't trigger the problem when I do that :-( What, you mean neither of the display corruptions happen with the above breakpoint active? Then it sounds like we have some timing or race condition problems, and debugging this will be very hard indeed. > With the modified term.c I always get > > Lisp Backtrace: > "x-popup-menu" (0xa92fa170) > "popup-menu" (0xa92fa6c0) > "menu-bar-open" (0xa92fac20) > "call-interactively" (0xa92faf60) > "command-execute" (0xa92fb4b8) > > > With term.c unmodified I alternately get > > Lisp Backtrace: > "x-popup-menu" (0x617c0ba0) > "popup-menu" (0x617c10f0) > "menu-bar-open" (0x617c1650) > "call-interactively" (0x617c1990) > "command-execute" (0x617c1ee8) > > and > > Lisp Backtrace: > "message" (0x617bf970) > "tooltip-show-help-non-mode" (0x617bfeb0) > "tooltip-show-help" (0x617c03e8) > "x-popup-menu" (0x617c0ba0) > "popup-menu" (0x617c10f0) > "menu-bar-open" (0x617c1650) > "call-interactively" (0x617c1990) > "command-execute" (0x617c1ee8) These are the expected results. So the problem is not here... Let's try to see the problem from the other end. Please do: M-x open-termscript RET SOME-FILE RET then hit F10, type C-n and/or C-p several times, make sure the problem happens, then exit Emacs and then post SOME-FILE. (Btw, this warrants a bug filed long ago. So please do, and let's continue there.)