From: martin rudalics <rudalics@gmx.at>
To: Juri Linkov <juri@jurta.org>
Cc: Christoph Scholtes <cschol2112@googlemail.com>, emacs-devel@gnu.org
Subject: Re: quit-window
Date: Sun, 23 Oct 2011 20:58:52 +0200 [thread overview]
Message-ID: <4EA463EC.8030707@gmx.at> (raw)
In-Reply-To: <87obx77tms.fsf@mail.jurta.org>
> 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'.
Is there any reason why one should not use C-x k here?
martin
next prev parent reply other threads:[~2011-10-23 18:58 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 ` quit-window Juri Linkov
2011-10-23 16:04 ` quit-window Christoph Scholtes
2011-10-23 18:58 ` martin rudalics [this message]
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=4EA463EC.8030707@gmx.at \
--to=rudalics@gmx.at \
--cc=cschol2112@googlemail.com \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.org \
/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).