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: Mon, 13 May 2002 08:17:56 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200205131417.g4DEHuV12868@aztec.santafe.edu> References: <200204072343.g37NhIC20114@aztec.santafe.edu> <200204201727.g3KHRD401381@aztec.santafe.edu> <86sn5pe1xs.fsf@gerd.dnsq.org> <200205100029.g4A0TqS06473@aztec.santafe.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1021299521 28509 127.0.0.1 (13 May 2002 14:18:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 May 2002 14:18:41 +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 177Geu-0007Pi-00 for ; Mon, 13 May 2002 16:18:40 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 177GpV-0008Ed-00 for ; Mon, 13 May 2002 16:29:37 +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 177Ges-00067r-00; Mon, 13 May 2002 10:18:38 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 177GeD-0005yo-00; Mon, 13 May 2002 10:17:57 -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 g4DEHuk02543; Mon, 13 May 2002 08:17:56 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g4DEHuV12868; Mon, 13 May 2002 08:17:56 -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:3876 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3876 I can see one more thing you can try: keep a list of LWLIB_ID values for which popup_activate_callback gets called, and remove them from the list when popup_deactivate_callback gets called for them. If popup_deactivate_callback gets called for something that is not active, just ignore it. The menu is active when the list is nonempty. This ought to work, as long as every meny gets activated and later deactivated.