all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* With lexical-binding t, how do I bind an external symbol dynamicall?
@ 2015-08-29 16:35 Alan Mackenzie
  2015-08-29 17:30 ` Philipp Stephani
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Mackenzie @ 2015-08-29 16:35 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs!

In some Elisp with no knowledge of the variable `some-flag', which will
be defined elsewhere, I want to write

	(let (some-flag) ....)

to bind `some-flag' dynamically.  The byte-compiler give me the warning:

    Unused lexical variable `some-flag'

.  Somehow, I need to tell the byte-compiler that `some-flag' will be an
external dynamic variable.  How do I do this?

I've had a look around the "Variables" page, and its sub-pages, in the
elisp manual, yet didn't find any instructions on how to get round this
problem.  Where in the manual is it described?

-- 
Alan Mackenzie (Nuremberg, Germany).



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

end of thread, other threads:[~2015-08-29 18:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-29 16:35 With lexical-binding t, how do I bind an external symbol dynamicall? Alan Mackenzie
2015-08-29 17:30 ` Philipp Stephani
2015-08-29 18:07   ` Alan Mackenzie

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.