#| -*-Scheme-*-
-$Id: modefs.scm,v 1.166 2004/01/16 19:11:09 cph Exp $
+$Id: modefs.scm,v 1.167 2006/01/02 04:20:59 riastradh Exp $
Copyright 1987,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1996,1998,1999,2000 Massachusetts Institute of Technology
(define-key 'fundamental '(#\c-x #\2) 'split-window-vertically)
(define-key 'fundamental '(#\c-x #\3) 'split-window-horizontally)
(define-prefix-key 'fundamental '(#\c-x #\4))
+(define-key 'fundamental '(#\C-x #\4 #\0) 'kill-buffer-and-window)
(define-key 'fundamental '(#\c-x #\4 #\c-f) 'find-file-other-window)
(define-key 'fundamental '(#\c-x #\4 #\.) 'find-tag-other-window)
(define-key 'fundamental '(#\c-x #\4 #\b) 'switch-to-buffer-other-window)
#| -*-Scheme-*-
-$Id: wincom.scm,v 1.135 2003/02/14 18:28:14 cph Exp $
+$Id: wincom.scm,v 1.136 2006/01/02 04:20:59 riastradh Exp $
Copyright 1987, 1989-2000 Massachusetts Institute of Technology
()
(lambda () (delete-other-windows (selected-window))))
+(define-command kill-buffer-and-window
+ "Kill the current buffer and delete the window it was in."
+ ()
+ (lambda ()
+ (kill-buffer-interactive (current-buffer))
+ (window-delete! (selected-window))))
+
(define-command other-window
"Select the ARG'th different window."
"p"