<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Scoping on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags/scoping/</link><description>Recent content in Scoping on Karpoke - Just Another Blog</description><generator>Hugo -- 0.167.0</generator><language>es</language><lastBuildDate>Tue, 26 Jun 2012 12:39:00 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags/scoping/index.xml" rel="self" type="application/rss+xml"/><item><title>lexical scoping and dynamic scoping in Emacs Lisp</title><link>http://karpoke.ignaciocano.com/2012/06/26/lexical-scoping-and-dynamic-scoping-in-emacs-lisp/</link><pubDate>Tue, 26 Jun 2012 12:39:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2012/06/26/lexical-scoping-and-dynamic-scoping-in-emacs-lisp/</guid><description>&lt;blockquote&gt;
&lt;p&gt;In this article, I demonstrate:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;difference between dynamic scoping and lexical scoping in Emacs
Lisp&lt;/li&gt;
&lt;li&gt;what to watch out for with dynamic scoping&lt;/li&gt;
&lt;li&gt;what you can do with lexical scoping and lexical closures&lt;/li&gt;
&lt;li&gt;what happens when you mix lexical scoping code and dynamic scoping
code&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Emacs Lisp is always dynamically scoped in Emacs 23 and below. Support
for lexical scoping is added to Emacs 24. Nice because many agree that
lexical scoping makes more sense in most cases than dynamic scoping
does. You’ll see why soon in this article. If you have an el file that
you want to load with lexical scoping, you can add -*-
lexical-binding: t -*- as the first line, then when Emacs 24 loads
the file, it will apply lexical scoping to the code in that el file.&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>