]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/frame.el (handle-move-frame): Fix corner case error
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 21 Jan 2023 13:49:48 +0000 (08:49 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 19 Mar 2023 18:51:27 +0000 (14:51 -0400)
lisp/frame.el

index d9255a5517105ca1acbf8c0aa7aee52ded7327f6..39e8a4c88b80dc8e991b144cbfde020c4e377a5c 100644 (file)
@@ -239,7 +239,8 @@ that's not the whole story: see `after-focus-change-function'."
 This function runs the abnormal hook `move-frame-functions'."
   (interactive "e")
   (let ((frame (posn-window (event-start event))))
-    (run-hook-with-args 'move-frame-functions frame)))
+    (when (frame-live-p frame) ;Experience shows it can die in the meantime.
+      (run-hook-with-args 'move-frame-functions frame))))
 \f
 ;;;; Arrangement of frames at startup