From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.devel Subject: eudc Directory Search duplicate menu problems Date: Tue, 17 Sep 2002 05:41:25 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1032237427 10236 127.0.0.1 (17 Sep 2002 04:37:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2002 04:37:07 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17rA6g-0002eo-00 for ; Tue, 17 Sep 2002 06:37:02 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17rAkL-0006Cl-00 for ; Tue, 17 Sep 2002 07:18:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rA6s-000826-00; Tue, 17 Sep 2002 00:37:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17rA5h-00081J-00 for emacs-devel@gnu.org; Tue, 17 Sep 2002 00:36:01 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17rA5f-000817-00 for emacs-devel@gnu.org; Tue, 17 Sep 2002 00:36:00 -0400 Original-Received: from imailg3.svr.pol.co.uk ([195.92.195.181]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rA5e-000813-00 for emacs-devel@gnu.org; Tue, 17 Sep 2002 00:35:58 -0400 Original-Received: from modem-1190.grommet.dialup.pol.co.uk ([62.25.174.166] helo=bundalo.shootybangbang.com) by imailg3.svr.pol.co.uk with esmtp (Exim 3.35 #1) id 17rA5b-0000q5-00 for emacs-devel@gnu.org; Tue, 17 Sep 2002 05:35:56 +0100 Original-Received: from jpw by bundalo.shootybangbang.com with local (Exim 3.32 #1 (Debian)) id 17rAAv-00030d-00 for ; Tue, 17 Sep 2002 05:41:25 +0100 Original-To: emacs-devel@gnu.org X-Face: +HUXJOuL$>S'Y(TcMmn:'53#"{#IGIj5l8G\T}8~+U%Df'MsC4bj+le)7h()--tE|@*f@RK k3kq8:bj[VkB;J>[FH~5*5WY=A/+MXY68cWV{A_H&fp\:`dejln?JcBp@FD-:7.#RsVx qVjl+V`>':H\paf%B.a Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7962 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7962 emacs -q --no-site-file then (require 'eudc) or choosing Tools > Directory Search > Load Hotlist of Servers (which is bound to `eudc-load-eudc') creates two Tools > Directory Search menus. Making this change avoids the problem, but doesn't address it: Index: menu-bar.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/menu-bar.el,v retrieving revision 1.228 diff -u -r1.228 menu-bar.el --- menu-bar.el 11 Sep 2002 21:56:50 -0000 1.228 +++ menu-bar.el 15 Sep 2002 07:50:44 -0000 @@ -989,7 +989,7 @@ (define-key menu-bar-tools-menu [separator-net] '("--")) -(define-key menu-bar-tools-menu [directory-search] +(define-key menu-bar-tools-menu [directory\ search] '(menu-item "Directory Search" eudc-tools-menu :help "Query directory servers via LDAP, CCSO PH/QI or BBDB")) (define-key menu-bar-tools-menu [compose-mail] I thought perhaps `easy-menu-intern' could be changed to replace the spaces in its string argument with hypens before interning; that avoided the duplicate Directory Search menu but created problems for recentf. Any ideas? -- John Paul Wallington