From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: C-l while in menu? Date: Thu, 9 May 2002 18:29:52 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200205100029.g4A0TqS06473@aztec.santafe.edu> References: <200204072343.g37NhIC20114@aztec.santafe.edu> <200204201727.g3KHRD401381@aztec.santafe.edu> <86sn5pe1xs.fsf@gerd.dnsq.org> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1020990843 15105 127.0.0.1 (10 May 2002 00:34:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 10 May 2002 00:34:03 +0000 (UTC) Cc: gerd@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 175yME-0003vW-00 for ; Fri, 10 May 2002 02:34:02 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 175yV5-0001dG-00 for ; Fri, 10 May 2002 02:43:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 175yJ9-0007YD-00; Thu, 09 May 2002 20:30:51 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 175yID-0007M0-00; Thu, 09 May 2002 20:29:53 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g4A0Trk11624; Thu, 9 May 2002 18:29:53 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g4A0TqS06473; Thu, 9 May 2002 18:29:52 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: Pavel@Janik.cz In-Reply-To: (Pavel@Janik.cz) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3793 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3793 What is the reason? It is simple. First, popup_activate_callback of the new menu is called and thus popup_activated_flag is set to 1, but after a moment, popup_deactivate_callback is called many times because it is called for all menu-items in the previous (File) menu. That might be a bug in LessTif. It might be correct behavior. I don't know which. Anyway, you can change the code to cope with it. How about if you change the code so it adds 1 when a menu item is activated and substracts 1 when a menu item is deactivated? Does it work then? If they don't always balance out to zero, maybe it needs to keep track of which ones have been activated and see if all of them have since been deactivated. If that doesn't work, then I am pretty sure it is a bug in LessTif.