unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* What's the equivalent of `boundp' for lexical variables?
@ 2024-01-26 20:16 Alan Mackenzie
  2024-01-26 20:50 ` Andreas Schwab
  2024-01-27  6:21 ` tomas
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Mackenzie @ 2024-01-26 20:16 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

I have a problem in a macro, where I have the expression ,expr.  I want
to evaluate it, but get the error message void-variable (expr).

In the good old days, I could have tested this with

    (if (boundp 'expr) (eval ,expr))

, but now, with lexical variables, I can't find the equivalent to boundp.
Is there such a facility for lexical variables, and if so what is it?

Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-01-28  5:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 20:16 What's the equivalent of `boundp' for lexical variables? Alan Mackenzie
2024-01-26 20:50 ` Andreas Schwab
2024-01-26 20:58   ` Alan Mackenzie
2024-01-26 21:25     ` Andreas Schwab
2024-01-26 21:36       ` Alan Mackenzie
2024-01-26 21:44         ` Andreas Schwab
2024-01-28  5:28         ` Po Lu
2024-01-27  6:21 ` tomas
2024-01-28  3:01   ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).