[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: run-with-timer does not display message
From: |
Emanuel Berg |
Subject: |
Re: run-with-timer does not display message |
Date: |
Sat, 19 Jul 2014 19:43:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I don't think Stefan meant backtick-type of quoting.
>> He meant this:
>>
>> M-: (run-with-timer 5 nil '(lambda ...
>
> Indeed.
Yes, of course I understood that because that was the
only quoting going on. That's why I supplied the
`equal' example that seems to indicate that quoting and
backticking (without commas) are equal (?).
Here is what I remember from this - I'm shooting from
the holster (a bit) here, feel free to correct
misconceptions/-assumptions:
OK, dynamic scope is when everything is looked up only
when needed, that's the dynamic (time) thing to it,
because things can be different at different
times. This is what makes the whole dynamic environment
in Emacs possible which, by comparison, makes even cool
languages like C a pain to work with for large,
interactive systems...
Lexical scope is when things are encoded once and then
they don't change because they are passed around as
they are. 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".
This corresponds to an extent to
call-by-value/call-by-reference, and in compiled
languages there are super-advanced use of pointers and
heap data structures to make up for the lack of "the
dynamic".
Questions:
1. How do I put Emacs in lexical mode? Do I do that
temporarily (?!) with a Elisp block around certain
code? Or is it a global option? If so, won't that
screw up everything else in unpredictable ways?
Also, isn't there some hybrid mode where this gets
sorted out in the background?
2. Interestingly, what I can see, my method, with
backticks and commas, isn't that "lexical" - because
then, there, the actual values are inserted?
--
underground experts united
- run-with-timer does not display message, Matthias Pfeifer, 2014/07/15
- Re: run-with-timer does not display message, Thorsten Jolitz, 2014/07/15
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/18
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/18
- Re: run-with-timer does not display message, Sebastian Wiesner, 2014/07/19
- Re: run-with-timer does not display message, Eli Zaretskii, 2014/07/19
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/19
- RE: run-with-timer does not display message, Drew Adams, 2014/07/19
- Message not available
- Re: run-with-timer does not display message,
Emanuel Berg <=
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/19
- Lexical and Dynamic Scope, Robert Thorpe, 2014/07/19
- Re: run-with-timer does not display message, Sebastian Wiesner, 2014/07/20
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/21
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/20
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/21
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/21
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/24
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/20
- RE: run-with-timer does not display message, Drew Adams, 2014/07/20