]> git.eshelyaron.com Git - emacs.git/commitdiff
(tmm-get-keybind): Use copy-sequence to ensure that the
authorNick Roberts <nickrob@snap.net.nz>
Sat, 14 Apr 2007 12:34:35 +0000 (12:34 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sat, 14 Apr 2007 12:34:35 +0000 (12:34 +0000)
global map isn't modified

lisp/tmm.el

index 087d864d0c3a9ccbd0908a763544dcf2d7d083a3..f70a8cd2ea2722752af3ad345d9538d1d1b11653 100644 (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.