all messages for Emacs-related lists mirrored at yhetil.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.