]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-delete-window): Do nothing if frame has just
authorGerd Moellmann <gerd@gnu.org>
Thu, 9 Aug 2001 14:57:30 +0000 (14:57 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 9 Aug 2001 14:57:30 +0000 (14:57 +0000)
one window.

lisp/ChangeLog
lisp/mouse.el

index 69c3c186a85217e597ff9a3a7ef162ff309ce06a..30da4f370086bb75ba7c43f5cae725687039d735 100644 (file)
@@ -1,5 +1,8 @@
 2001-08-09  Gerd Moellmann  <gerd@gnu.org>
 
+       * mouse.el (mouse-delete-window): Do nothing if frame has just
+       one window.
+
        * bindings.el (minor-mode-alist): Use mode-line-minor-mode-keymap
        for the minor mode name.
 
index 66d0a924b85bd1b175e4ddd8a0b8408dd07019c0..410ad59b02d39fceb8e50aefe7402356e37d8c1f 100644 (file)
@@ -233,11 +233,10 @@ Use the former if the menu bar is showing, otherwise the latter."
 
 (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)))))