[Top][All Lists]

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

bug#20463: 25.0.50; New deletion commands in buffer-menu [PATCH]

From: Lars Ingebrigtsen
Subject: bug#20463: 25.0.50; New deletion commands in buffer-menu [PATCH]
Date: Tue, 23 Feb 2016 21:38:55 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Filipp Gunbin <address@hidden> writes:

> +(defun kill-matching-buffers-file-name (regexp)
> +  "Kill buffers whose visited file name matches the specified REGEXP."
> +  (interactive "sKill buffers visiting files matching this regular 
> expression: ")
> +  (dolist (buffer (buffer-list))
> +    (let ((file-name (buffer-file-name buffer)))
> +      (when (and file-name 
> +                 (string-match regexp file-name))
> +        (kill-buffer-ask buffer)))))

I'm not sure this sounds like a generally useful function...  I tend to
think that most users would just be using ibuffer for this stuff, and if
you want to programmatically kill lots of buffers, you don't really want
`kill-buffer-ask'.  It falls between two chairs, I think.

So I'm closing this bug report.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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