emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disappearing custom menu


From: Dan Nicolaescu
Subject: Re: disappearing custom menu
Date: Sun, 18 Nov 2007 15:41:41 -0800

martin rudalics <address@hidden> 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).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]