From: Kaushal Modi <kaushal.modi@gmail.com>
To: "R. Diez" <rdiezmail-emacs@yahoo.de>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: kill-matching-buffers without confirmation
Date: Mon, 22 May 2017 18:21:46 +0000 [thread overview]
Message-ID: <CAFyQvY2AKj+h2KS7Lz5Dx9fKrkP8iEwjLjanOA2SgZks=C9_=Q@mail.gmail.com> (raw)
In-Reply-To: <537757403.6158992.1495470490914@mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 528 bytes --]
On Mon, May 22, 2017 at 2:11 PM R. Diez <rdiezmail-emacs@yahoo.de> wrote:
>
> Please copy me on the answer, as I am not subscribed to the list.
>
For future, all help questions can go to help-gnu-emacs@gnu.org
To answer your question, here is one way:
(defun kill-matching-buffers-just-do-it ()
"Kill buffers whose names match REGEXP, without asking."
(interactive)
(cl-letf (((symbol-function 'kill-buffer-ask) #'kill-buffer))
(call-interactively #'kill-matching-buffers)))
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1078 bytes --]
next prev parent reply other threads:[~2017-05-22 18:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <537757403.6158992.1495470490914.ref@mail.yahoo.com>
2017-05-22 16:28 ` kill-matching-buffers without confirmation R. Diez
2017-05-22 18:21 ` Kaushal Modi [this message]
2017-05-22 18:34 ` Clément Pit-Claudel
2017-05-22 18:42 ` Kaushal Modi
2017-05-22 18:45 ` Clément Pit-Claudel
2017-05-22 19:00 ` Kaushal Modi
2017-05-22 19:13 ` Clément Pit-Claudel
2017-05-22 19:20 ` Kaushal Modi
2017-05-22 19:34 ` Stefan Monnier
2017-05-22 22:21 ` Drew Adams
2017-05-23 5:28 ` Yuri Khan
2017-05-23 6:28 ` R. Diez
2017-05-23 20:34 ` Drew Adams
2017-05-23 12:51 ` Kaushal Modi
2017-05-23 13:03 ` Stefan Monnier
2017-05-23 13:18 ` Kaushal Modi
2017-05-24 1:50 ` zhanghj
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='CAFyQvY2AKj+h2KS7Lz5Dx9fKrkP8iEwjLjanOA2SgZks=C9_=Q@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=rdiezmail-emacs@yahoo.de \
/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.