From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: run-with-timer does not display message Date: Sat, 19 Jul 2014 19:43:16 +0200 Organization: Aioe.org NNTP Server Message-ID: <878unputvv.fsf@debian.uxu> References: <87k37e4tjw.fsf@gmail.com> <87d2d2e4ga.fsf@debian.uxu> <83bnsl5pxo.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405791927 6659 80.91.229.3 (19 Jul 2014 17:45:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2014 17:45:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 19 19:45:18 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X8YhB-0000PT-W3 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jul 2014 19:45:18 +0200 Original-Received: from localhost ([::1]:55158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8YhB-00062Z-JB for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jul 2014 13:45:17 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: SIvZRMPqRkkTHAHL6NkRuw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:bj+1g+gBCLsfWBi32TD0poD2PBI= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:206522 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98794 Archived-At: Stefan Monnier 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