changeset 38763:3cf8f8ea6d0e

(mouse-delete-window): Do nothing if frame has just one window.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 09 Aug 2001 14:56:50 +0000
parents c1945c69cde2
children 78835d2a314e
files lisp/mouse.el
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mouse.el	Thu Aug 09 14:54:05 2001 +0000
+++ b/lisp/mouse.el	Thu Aug 09 14:56:50 2001 +0000
@@ -233,11 +233,10 @@
 
 (defun mouse-delete-window (click)
   "Delete the window you click on.
-If the frame has just one window, bury the current buffer instead.
+Do nothing if the frame has just one window.
 This command must be bound to a mouse click."
   (interactive "e")
-  (if (one-window-p t)
-      (bury-buffer)
+  (unless (one-window-p t)
     (mouse-minibuffer-check click)
     (delete-window (posn-window (event-start click)))))