emacs-devel
[Top][All Lists]
Advanced

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

Re: kill-matching-buffers without confirmation


From: Kaushal Modi
Subject: Re: kill-matching-buffers without confirmation
Date: Mon, 22 May 2017 18:21:46 +0000

On Mon, May 22, 2017 at 2:11 PM R. Diez <address@hidden> wrote:

Please copy me on the answer, as I am not subscribed to the list.

For future, all help questions can go to address@hidden

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


reply via email to

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