On Thu, 9 Nov 2006, Bram Moolenaar wrote:

> buffer-local menus are complicated.  What about menus that are not
> for the current buffer, hide them?  Would make jumping between
> buffers very slow.

When I've defined menus that are only applicable to a buffer or a
filetype I've just defined autocommands that does an :amenu disable on
BufLeave and :amenu enable on BufEnter.  I've found this is usually
the best compromise and in fact has some advantages; it can be
confusing and otherwise problematic to have menu items, or entire
menus--especially toplevel menus--disappear and reappear.

- Christian

-- 
 If you place a small value on yourself, rest assured, the world will not 
                            raise your price.                             
Christian J. Robinson <[EMAIL PROTECTED]> http://infynity.spodzone.com/
   PGP keys: 0x893B0EAF / 0xFB698360   http://infynity.spodzone.com/pgp   

Reply via email to