(tmm-get-keybind): Use copy-sequence to ensure that the

global map isn't modified
This commit is contained in:
Nick Roberts 2007-04-14 12:34:35 +00:00
parent 57b213434a
commit e47b701926

View file

@ -541,7 +541,7 @@ of `menu-bar-final-items'."
;; Make a list of all the bindings in all the keymaps.
(setq minorbind (mapcar 'cdr (minor-mode-key-binding keyseq)))
(setq localbind (local-key-binding keyseq))
(setq globalbind (cdr (global-key-binding keyseq)))
(setq globalbind (copy-sequence (cdr (global-key-binding keyseq))))
;; If items have been redefined/undefined locally, remove them from
;; the global list.