emacs-devel
[Top][All Lists]
Advanced

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

Re: Is this a bug in while-let or do I missunderstand it?


From: Sean Whitton
Subject: Re: Is this a bug in while-let or do I missunderstand it?
Date: Mon, 25 Nov 2024 12:45:41 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Hello,

Installed, thanks.  I edited your commit message to be more specific
about what you changed.

I realised though that we are missing one of the features of these
macros: you can also just write a symbol in the list, and it means to
proceed if that symbol is already bound to a true value.  E.g.

(let ((foo t))
  (when-let* ((hello "hello")
              foo)
    (message hello)))

If in the first line you bind foo to nil instead, then 'message' is not
called.  I can't remember where this is documented, but it is somewhere..

It would be good to have it in the manual too, if you would consider
working on it.

-- 
Sean Whitton



reply via email to

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