]> git.eshelyaron.com Git - emacs.git/commitdiff
(frame-delete-all): Copy the whole alist first.
authorRichard M. Stallman <rms@gnu.org>
Thu, 4 Aug 1994 23:31:12 +0000 (23:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 4 Aug 1994 23:31:12 +0000 (23:31 +0000)
lisp/frame.el

index 0688b3098d5ae2adce04f6f3a1e6ec60e544ef01..b529afc89813bf1fc8f521c394a87246207102dc 100644 (file)
@@ -336,6 +336,7 @@ These supersede the values given in `default-frame-alist'.")
 ;; Delete from ALIST all elements whose car is KEY.
 ;; Return the modified alist.
 (defun frame-delete-all (key alist)
+  (setq alist (copy-sequence alist))
   (let ((tail alist))
     (while tail
       (if (eq (car (car tail)) key)