[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kill-matching-buffers without confirmation
From: |
Stefan Monnier |
Subject: |
Re: kill-matching-buffers without confirmation |
Date: |
Tue, 23 May 2017 09:03:16 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>> The suggestions to wrap `kill-matching-buffers' with `cl-letf' or `flet'
>> are overkill - misguided, IMHO.
> Using cl-letf is one of the valid ways. I wouldn't call it an
> overkill. It instead precisely does what the OP needed without have
> to rewrite the whole function in the user's config.
No, not "precisely". It does more than you want. E.g. it will also
affect other threads which could be running at the same time, or any
other piece of code that might run during this dynamic scope (e.g. while
debugging this code).
It's good we can use such a workaround when there's no other solution,
but let's not design things in a way that requires the use of such hacks.
Stefan
- Re: kill-matching-buffers without confirmation, (continued)
- Re: kill-matching-buffers without confirmation, Clément Pit-Claudel, 2017/05/22
- Re: kill-matching-buffers without confirmation, Kaushal Modi, 2017/05/22
- Re: kill-matching-buffers without confirmation, Clément Pit-Claudel, 2017/05/22
- Re: kill-matching-buffers without confirmation, Kaushal Modi, 2017/05/22
- Re: kill-matching-buffers without confirmation, Clément Pit-Claudel, 2017/05/22
- Re: kill-matching-buffers without confirmation, Kaushal Modi, 2017/05/22
- Re: kill-matching-buffers without confirmation, Stefan Monnier, 2017/05/22
RE: kill-matching-buffers without confirmation, Drew Adams, 2017/05/22
Re: kill-matching-buffers without confirmation, R. Diez, 2017/05/23