[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resize remaining buffer after kill buffer

From: Torsten Müller
Subject: Re: resize remaining buffer after kill buffer
Date: Mon, 11 Aug 2003 15:31:10 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (windows-nt)

address@hidden (Torsten Müller) schrieb:

> Thanks for your code.

I experimented a bit with your code and with the other function having
the same name. The problem of the other function is that it doesn't
delete a buffer which has full size. But I want to have a function for
all purpuse use (on C-x k). So, my dream is something like this:

(defun kill-this-buffer-and-window ()
  "Kill the current buffer and delete the selected window."
  (let (buffer current-buffer)
    (kill-buffer buffer)
    (if (> (count-windows) 1)
      (delete-window (selected-window)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]