Glenn Morris writes:
 > Nick Roberts wrote:
 > 
 > > But isn't globalbind already a copy of the global map?
 > >
 > >      (setq globalbind (cdr (global-key-binding keyseq)))
 > 
 > By experiment, no, eg:
 > 
 > (define-key lisp-interaction-mode-map [menu-bar edit] 'undefined)
 > M-x tmm-menubar
 > 
 > will delete the Edit menu from _all_ buffers. 

I don't see that.  I only see a problem if I toggle a minor mode, e.g:

M-x view-mode
(define-key view-mode-map [menu-bar edit] 'undefined)
M-x view-mode

The edit menu-item has disappeared from the global-map.

 >                                               Adding a copy-sequence
 > prevents that.

Yes, so I have committed this change.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


_______________________________________________
emacs-pretest-bug mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to