[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26650: 26.0.50; Protect *Backtrace* from accidental killing
From: |
Eli Zaretskii |
Subject: |
bug#26650: 26.0.50; Protect *Backtrace* from accidental killing |
Date: |
Wed, 26 Apr 2017 18:33:00 +0300 |
> From: npostavs@users.sourceforge.net
> Cc: Tino Calancha <tino.calancha@gmail.com>, 26650@debbugs.gnu.org
> Date: Wed, 26 Apr 2017 08:52:26 -0400
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> >> + (add-hook 'kill-buffer-hook
> >> >> + (lambda () (if (> (recursion-depth) 0) (top-level))) nil t)
> >> >
> >> > This will throw to top-level when _any_ buffer is killed, as long as
> >> > we are in recursive-edit, no?
> >> No, because `add-hook' is called with non-nil LOCAL arg.
> >
> > Right, sorry for not paying attention.
>
> Maybe I should have written
>
> (add-hook 'kill-buffer-hook (lambda ...) nil 'local)
>
> to emphasize this?
It's up to you, but the fact that I didn't see it is not a reason good
enough to change anything, IMO.
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, Tino Calancha, 2017/04/25
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, npostavs, 2017/04/25
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, Tino Calancha, 2017/04/25
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, npostavs, 2017/04/25
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, Tino Calancha, 2017/04/25
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, Eli Zaretskii, 2017/04/26
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, Tino Calancha, 2017/04/26
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, Eli Zaretskii, 2017/04/26
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, npostavs, 2017/04/26
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, Tino Calancha, 2017/04/26
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing,
Eli Zaretskii <=
- bug#26650: 26.0.50; Protect *Backtrace* from accidental killing, Michael Heerdegen, 2017/04/26