From: Homunkulus@gmx.net (Torsten Müller)
Subject: Re: resize remaining buffer after kill buffer
Date: Mon, 11 Aug 2003 15:31:10 +0200 [thread overview]
Message-ID: <u65l4e2xt.fsf@gmx.net> (raw)
In-Reply-To: ufzk8e554.fsf@gmx.net
Homunkulus@gmx.net (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."
(interactive)
(let (buffer current-buffer)
(kill-buffer buffer)
(if (> (count-windows) 1)
(delete-window (selected-window)))
)
)
T.M.
next prev parent reply other threads:[~2003-08-11 13:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-11 8:03 resize remaining buffer after kill buffer Torsten Müller
2003-08-11 12:34 ` Joakim Hove
2003-08-11 12:43 ` Torsten Müller
2003-08-11 13:31 ` Torsten Müller [this message]
2003-08-11 13:38 ` Joakim Hove
2003-08-11 15:04 ` Stefan Monnier
2003-08-12 18:36 ` Kai Großjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u65l4e2xt.fsf@gmx.net \
--to=homunkulus@gmx.net \
--cc=Urlicht@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.