[Top][All Lists]

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

Re: menu-bar: disable items when no frame visible

From: Juri Linkov
Subject: Re: menu-bar: disable items when no frame visible
Date: Fri, 23 Dec 2005 22:43:34 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

> Since I fixed menu-bar to work on non-toolkit builds, I think patches
> sent by David Reitter finally can be installed now.

I looked at these patches and now I have some questions.

1. What is the purpose of adding the condition `enable-recursive-minibuffers'
to `:enable' of "Visit New File..." and "Open File..."?  If to allow
calling `find-file' in the minibuffer then this doesn't work anyway.
It gives an error after selecting "Open File..." and selecting a file name
while point in the minibuffer:

  find-file: Cannot switch buffers in minibuffer window

2. Why keymap variables are replaced with their values at the moment
of adding a menu item?  I.e. what changes like the following achieve?

 (define-key menu-bar-edit-menu [bookmark]
-  '(menu-item "Bookmarks" menu-bar-bookmark-map
+  `(menu-item "Bookmarks" ,menu-bar-bookmark-map
              :help "Record positions and jump between them"))

Juri Linkov

reply via email to

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