emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unwind-protect within while-no-input


From: Michael Heerdegen
Subject: Re: unwind-protect within while-no-input
Date: Wed, 08 May 2024 13:42:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

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


Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]