all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: run-with-timer does not display message
@ 2014-07-19 18:12 Stefan Monnier
  2014-07-19 20:06 ` Lexical and Dynamic Scope Robert Thorpe
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2014-07-19 18:12 UTC (permalink / raw)
  To: help-gnu-emacs

> Because they can be encoded different things it makes sense calling
> this lexical (because the value is simply read, not looked up) and not
> "static".

It's also called "static scoping".  And the name doesn't have much to do
with the implementation technique used.  It's called "lexical" because
the way a particular identifier use is matched to a particular variable
only depends on the shape of the program text rather than depending on
its run-time behavior.

> This corresponds to an extent to
> call-by-value/call-by-reference,

No.  CBV/CBR/CBN are orthogonal concepts to static/dynamic scoping.

> 1. How do I put Emacs in lexical mode? Do I do that

Put -*- lexical-binding:t -*- somewhere on the first line of your Elisp file.


        Stefan




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

end of thread, other threads:[~2014-07-24 22:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5712.1405800439.1147.help-gnu-emacs@gnu.org>
2014-07-20 19:47 ` Lexical and Dynamic Scope Emanuel Berg
2014-07-24  8:50   ` Aurélien Aptel
     [not found]   ` <mailman.5948.1406191841.1147.help-gnu-emacs@gnu.org>
2014-07-24 22:16     ` Emanuel Berg
2014-07-24 22:28       ` Stefan Monnier
     [not found]       ` <mailman.5974.1406240948.1147.help-gnu-emacs@gnu.org>
2014-07-24 22:44         ` Emanuel Berg
2014-07-19 18:12 run-with-timer does not display message Stefan Monnier
2014-07-19 20:06 ` Lexical and Dynamic Scope Robert Thorpe

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.