From: Juri Linkov <juri@jurta.org>
To: martin rudalics <rudalics@gmx.at>
Cc: Christoph Scholtes <cschol2112@googlemail.com>, emacs-devel@gnu.org
Subject: Re: quit-window
Date: Sun, 23 Oct 2011 16:27:31 +0300 [thread overview]
Message-ID: <87obx77tms.fsf@mail.jurta.org> (raw)
In-Reply-To: <4EA3DC67.8050607@gmx.at> (martin rudalics's message of "Sun, 23 Oct 2011 11:20:39 +0200")
>> quit-window bound to `q' in a keymap provides a nice, consistent UI for
>> getting rid of the window and killing/burying its buffer.
>
> But only when you are viewing a buffer.
BTW, what do you think about adding to window.el something like:
(defun quit-window-kill-buffer ()
"Quit WINDOW and kill its buffer."
(interactive)
(quit-window t))
The problem is that for some modes it's desirable to kill buffers as well
when quitting. Then it would be easier to put in .emacs:
(define-key dired-mode-map "q" 'quit-window-kill-buffer)
Or even better to add a new customizable variable with a list of modes
where `q' kills the buffer, e.g. `quit-window-kill-buffer-modes'
that could be customized to add modes like `dired-mode'.
next prev parent reply other threads:[~2011-10-23 13:27 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-22 20:43 quit-window Christoph Scholtes
2011-10-23 7:23 ` quit-window Chong Yidong
2011-10-23 15:02 ` quit-window Christoph Scholtes
2011-10-23 23:49 ` quit-window Chong Yidong
2011-10-24 16:39 ` quit-window Richard Stallman
2011-10-24 17:18 ` quit-window Eli Zaretskii
2011-10-24 17:40 ` quit-window martin rudalics
2011-10-25 12:19 ` quit-window Richard Stallman
2011-10-25 1:24 ` quit-window Christoph Scholtes
2011-10-25 13:01 ` quit-window martin rudalics
2011-10-25 18:55 ` quit-window Richard Stallman
2011-10-23 9:20 ` quit-window martin rudalics
2011-10-23 13:27 ` Juri Linkov [this message]
2011-10-23 16:04 ` quit-window Christoph Scholtes
2011-10-23 18:58 ` quit-window martin rudalics
2011-10-24 5:12 ` quit-window Juri Linkov
2011-10-25 3:59 ` quit-window Chong Yidong
2011-10-25 4:28 ` quit-window Juri Linkov
2011-10-23 16:01 ` quit-window Christoph Scholtes
2011-10-23 19:00 ` quit-window martin rudalics
2011-10-25 1:00 ` quit-window Christoph Scholtes
2011-10-25 10:04 ` quit-window martin rudalics
-- strict thread matches above, loose matches on Subject: below --
2007-10-19 9:00 quit-window martin rudalics
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87obx77tms.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=cschol2112@googlemail.com \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).