[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable for Confirming Killing a Buffer
From: |
Lars Ingebrigtsen |
Subject: |
Re: Variable for Confirming Killing a Buffer |
Date: |
Fri, 03 Dec 2021 22:32:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Oliver Taylor <olivertaylor@me.com> writes:
> I would imagine the flaw with this is that there are probably a lot of
> different ways buffers get killed, and a key binding is only one of
> them, so it would only offer a little protection.
I think it's the explicit user-initiated kills that we'd want to be able
to stop, though? Whether (say) man-mode has decided to kill off a
buffer it's created isn't very interesting for the users.
>> As for the feature itself, I expect people to want to be able to kill
>> some buffers without query, anyway, so perhaps it should allow a list of
>> major modes that should be queried?
>
> Would this be better accomplished by setting the variable via a mode-hook?
Perhaps?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no