From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: How to pop-up a dialog from a pop-up menu? Date: Fri, 19 Jan 2007 21:24:31 +0800 (CST) Message-ID: <884307.17492.qm@web15209.mail.cnb.yahoo.com> Reply-To: wdtsxx-emacs@yahoo.com.cn NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1169213119 25909 80.91.229.12 (19 Jan 2007 13:25:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 13:25:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 14:25:15 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H7tk2-0003J3-DK for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 14:25:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7tk1-0003mG-Sk for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 08:25:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7tje-0003gS-Io for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 08:24:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7tjb-0003bX-Hu for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 08:24:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7tjb-0003b7-9m for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 08:24:47 -0500 Original-Received: from [202.165.105.139] (helo=web15209.mail.cnb.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1H7tjW-0008EP-5d for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 08:24:47 -0500 Original-Received: (qmail 17755 invoked by uid 60001); 19 Jan 2007 13:24:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=gyAoqPFmlDcBQ+DOVpxt4xETCufjTqFDENXkrzigO2Z/Ig+AEgIfQG9tKzJXEitjBaIx3xWcB4eyuNYkpYHAXyyFUuJmdTM0vVJPW8bErA6c2879GHcM2rCpr5x61XVJbr0mx+gLxxVq49l7xOXmsDAAxsIjADWinQlrY6FLpDQ=; X-YMail-OSG: _n9fl5UVM1lBC5_qH_kbJ50zrO6Saj17cCHXAAOgVu_x0P1gpDBcrgGe1EITiLarP_7OKh65W_P5uLIqDa_HAMDg0xUUfIpvxtHWYX_0KobBczad_58VfQjKsPQ5HmCVLJXZLDUXZKDY68o- Original-Received: from [219.133.146.244] by web15209.mail.cnb.yahoo.com via HTTP; Fri, 19 Jan 2007 21:24:31 CST Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40461 Archived-At: I run Emacs 22.0.50.2 on Windows2000. This is my elisp. (easy-menu-add-item nil '("edit") ["pop-up a dialog" (lambda() (interactive) (x-popup-dialog t '("dialog" ("item" . t)))) 1]) (global-set-key [mouse-3] '(lambda() (interactive) (popup-menu menu-bar-edit-menu))) When I click the mouse-3 and choose "pop-up a dialog" from the pop-up menu, the "dialog" dialog doesn't show up. How to fix it? ___________________________________________________________ ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡ http://cn.mail.yahoo.com