[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unwind-protect within while-no-input
From: |
Eli Zaretskii |
Subject: |
Re: unwind-protect within while-no-input |
Date: |
Wed, 08 May 2024 15:12:44 +0300 |
> Date: Wed, 08 May 2024 13:42:50 +0200
> From: Michael Heerdegen via "Emacs development discussions."
> <emacs-devel@gnu.org>
>
> Po Lu <luangruo@yahoo.com> writes:
>
> > ? Just a stab in the dark, I'm afraid.
>
> `unwind-protect' works as expected:
>
> #+begin_src emacs-lisp
> (let (foo)
> (while-no-input
> (unwind-protect (while t nil)
> (setq foo 'interrupted)))
> (message "foo: %s" foo))
> #+end_src
It does, indeed, work, but it doesn't discern between C-g and any
other input.
- Re: unwind-protect within while-no-input, (continued)
- Re: unwind-protect within while-no-input, Spencer Baugh, 2024/05/07
- Re: unwind-protect within while-no-input, Po Lu, 2024/05/08
- Re: unwind-protect within while-no-input, Michael Heerdegen, 2024/05/08
- Re: unwind-protect within while-no-input, Michael Heerdegen, 2024/05/08
- Re: unwind-protect within while-no-input, Spencer Baugh, 2024/05/08
- Re: unwind-protect within while-no-input, Michael Heerdegen, 2024/05/08
- Re: unwind-protect within while-no-input, Spencer Baugh, 2024/05/08
- Re: unwind-protect within while-no-input, Michael Heerdegen, 2024/05/08
- Re: unwind-protect within while-no-input, Spencer Baugh, 2024/05/09
- Re: unwind-protect within while-no-input, Michael Heerdegen, 2024/05/09
- Re: unwind-protect within while-no-input,
Eli Zaretskii <=
- Re: unwind-protect within while-no-input, Michael Heerdegen, 2024/05/08
- Re: unwind-protect within while-no-input, Eli Zaretskii, 2024/05/08
- Re: unwind-protect within while-no-input, Spencer Baugh, 2024/05/08
- Re: unwind-protect within while-no-input, Eli Zaretskii, 2024/05/08
- Re: unwind-protect within while-no-input, Spencer Baugh, 2024/05/08
- Re: unwind-protect within while-no-input, Eli Zaretskii, 2024/05/08
- Re: unwind-protect within while-no-input, Spencer Baugh, 2024/05/08
- Re: unwind-protect within while-no-input, Eli Zaretskii, 2024/05/08
- Re: unwind-protect within while-no-input, Michael Heerdegen, 2024/05/08
- Re: unwind-protect within while-no-input, Spencer Baugh, 2024/05/09