]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/mouse.el (tear-off-window): Fix non-mouse use (bug#32799)
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 22 Sep 2018 23:16:55 +0000 (19:16 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 22 Sep 2018 23:16:55 +0000 (19:16 -0400)
lisp/mouse.el

index f749d12054b36675b1cbffcf1ded8c4e3c56fa29..d14b5cbea4d2cc444c9d782c2920037dcf3feae5 100644 (file)
@@ -326,7 +326,7 @@ This command must be bound to a mouse click."
 (define-obsolete-function-alias 'mouse-tear-off-window 'tear-off-window "24.4")
 (defun tear-off-window (click)
   "Delete the selected window, and create a new frame displaying its buffer."
-  (interactive "e")
+  (interactive (list last-nonmenu-event))
   (mouse-minibuffer-check click)
   (let* ((window (posn-window (event-start click)))
         (buf (window-buffer window))