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: Sun, 20 Jul 2014 21:27:19 +0200 Organization: Aioe.org NNTP Server Message-ID: <87vbqrsueg.fsf@debian.uxu> References: <87k37e4tjw.fsf@gmail.com> <87d2d2e4ga.fsf@debian.uxu> <83bnsl5pxo.fsf@gnu.org> <878unputvv.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405884628 9782 80.91.229.3 (20 Jul 2014 19:30:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2014 19:30:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 20 21:30:22 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 1X8woP-00018z-4m for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 21:30:21 +0200 Original-Received: from localhost ([::1]:58885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8woO-0002ze-P1 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 15:30:20 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 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:lse+Uz4kW3FYhjf+20iJr0pLV9Q= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:206563 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:98835 Archived-At: Stefan Monnier writes: >> 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. > > ... > > No. CBV/CBR/CBN are orthogonal concepts to > static/dynamic scoping. Isn't CBR and dynamic alike in the sense than a value is looked up somewhere outside of the "scope", say a function in C, while CBV is lexical as the parameter is just a way to refer to a value for convenience? I don't know what CBN (call by name?) is but that in the above sense would be dynamic as the name, once put to use, is replaced by a value and that value has to be looked up at that time. If a reference is used as a reference, i.e., ignoring what it refers to, then of course it is all the same. It has to be looked up but otherwise why do it at all? >> 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. So you can't do it for a specific function? I'm starting to lean toward me preferring the backtick-comma solution... -- underground experts united