GNU bug report logs - #20463
25.0.50; New deletion commands in buffer-menu [PATCH]

Previous Next

Package: emacs;

Reported by: Filipp Gunbin <fgunbin <at> fastmail.fm>

Date: Wed, 29 Apr 2015 17:57:02 UTC

Severity: wishlist

Tags: patch, wontfix

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 20463 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#20463: 25.0.50; New deletion commands in buffer-menu [PATCH]
Date: Tue, 23 Feb 2016 21:38:55 +1100
Filipp Gunbin <fgunbin <at> fastmail.fm> 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




This bug report was last modified 9 years and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.