]> git.eshelyaron.com Git - emacs.git/commitdiff
(Man-kill, Man-quit): Use quit-window.
authorRichard M. Stallman <rms@gnu.org>
Fri, 5 Jun 1998 22:54:28 +0000 (22:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 5 Jun 1998 22:54:28 +0000 (22:54 +0000)
lisp/man.el

index 4f9177de797f52262437377869c0e97eaaba8f27..47475d28b2d00d09b8e6b57f891d49274c3e3bf7 100644 (file)
@@ -1067,26 +1067,12 @@ Specify which reference to use; default is based on word at point."
 (defun Man-kill ()
   "Kill the buffer containing the manpage."
   (interactive)
-  (let ((buff (current-buffer)))
-    (delete-windows-on buff)
-    (kill-buffer buff))
-  (if (and window-system
-          (or (eq Man-notify-method 'newframe)
-              (and pop-up-frames
-                   (eq Man-notify-method 'bully))))
-      (delete-frame)))
+  (quit-window t))
 
 (defun Man-quit ()
   "Bury the buffer containing the manpage."
   (interactive)
-  (let ((buff (current-buffer)))
-    (delete-windows-on buff)
-    (bury-buffer buff))
-  (if (and window-system
-          (or (eq Man-notify-method 'newframe)
-              (and pop-up-frames
-                   (eq Man-notify-method 'bully))))
-      (delete-frame)))
+  (quit-window))
 
 (defun Man-goto-page (page)
   "Go to the manual page on page PAGE."