From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: disappearing custom menu Date: Sun, 18 Nov 2007 15:41:41 -0800 Message-ID: References: <200711171647.lAHGlHqH024027@jane.dms.auburn.edu> <47409082.5030307@gmx.at> <4740960E.4040607@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195429468 17359 80.91.229.12 (18 Nov 2007 23:44:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Nov 2007 23:44:28 +0000 (UTC) Cc: emacs-devel@gnu.org, teirllm@dms.auburn.edu, rms@gnu.org, monnier@iro.umontreal.ca To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 19 00:44:34 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IttoX-0001o3-Hi for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2007 00:44:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IttoK-0008KG-4w for ged-emacs-devel@m.gmane.org; Sun, 18 Nov 2007 18:44:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IttoG-0008Jn-Oc for emacs-devel@gnu.org; Sun, 18 Nov 2007 18:44:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IttoF-0008Jb-76 for emacs-devel@gnu.org; Sun, 18 Nov 2007 18:44:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IttoF-0008JY-2k for emacs-devel@gnu.org; Sun, 18 Nov 2007 18:44:15 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IttoA-00011E-I3; Sun, 18 Nov 2007 18:44:10 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id lAINffFY007469; Sun, 18 Nov 2007 15:41:43 -0800 (PST) In-Reply-To: <4740960E.4040607@gmx.at> (martin rudalics's message of "Sun, 18 Nov 2007 20:44:14 +0100") Original-Lines: 27 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83593 Archived-At: martin rudalics writes: > > If that is the case, then there's something wrong with the mechanism to > > set the map. The menu does not disappear when the point is moved to the > > field (and does not appear when the point is moved out of the field). It > > disappears when trying to click on it, this is strange for the users. > > > > Try > > (easy-menu-define > Custom-mode-menu (list custom-mode-map custom-field-keymap) > "Menu used in customization buffers." > (nconc (list "Custom" > (customize-menu-create 'customize)) > (mapcar (lambda (arg) > (let ((tag (nth 0 arg)) > (command (nth 1 arg)) > (active (nth 2 arg)) > (help (nth 3 arg))) > (vector tag command :active (eval active) :help help))) > custom-commands))) This worked fine. Thanks! (BTW, to make your work a bit easier when installing this: besides replacing the similar code in cus-edit.el with the above, I needed to move the definition of custom-field-keymap before the above code).