-
Recent Posts
Archives
- November 2016
- April 2015
- March 2015
- February 2015
- November 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- July 2012
- March 2012
- December 2011
Categories
- Adobe Reader
- AUCTeX
- autopair
- blogging
- bug
- C
- cl-lib
- closure
- Common Lisp
- comparison
- dash
- debug
- documentary
- dynamic scoping
- elisp
- ELPA
- English
- entropy
- ergodic theory
- export
- exposition
- fish
- fix
- font
- gotcha
- html
- htmlize
- image
- immutable
- information theory
- Internet
- intuition
- Japanese
- javascript
- JPEG
- js2-mode
- KAIST
- keyboard
- kimchi
- Korea
- LaTeX
- lexical-binding
- lexical scoping
- LuaTeX
- managed
- measure theory
- monospace
- movie
- mutable
- namespace
- NEF
- org-mode
- package
- Photoshop
- PNG
- pointer
- portable
- prefix
- process
- Python
- rainbow-delimiters
- region
- rice
- SLIME
- special-variable
- stew
- tablet
- Ubuntu
- unicode
- Windows
- Windows 8
- wireless
- Wordpress
- XeTeX
Meta
Tag Archives: lexical scoping
Emacs Lisp lexical binding gotchas and related best practices
Table of Contents 1. motivation 2. non-local variables and closures 3. gotchas and best practices 3.1. code as data 3.2. invasion of special variable 3.3. – – – 3.4. mixing iteration, closures, and asynchronous programming together 4. testing tools 4.1. … Continue reading
how to enable Unicode encoding, lexical scope, and CL functions in an Emacs Lisp file
Table of Contents 1. how to enable UTF-8 encoding 2. how to enable lexical scope 3. how to use CL functions I recommend Emacs beginners to enable at least three things in their elisp files (such as dotemacs files, a.k.a. … Continue reading
Differences between Common Lisp and Emacs Lisp
Table of Contents Motivation Comprehensive? first sight differences data types buffer local variables lexical scope and dynamic scope namespace call by sharing Three equality operators: eq, equal, eql functions that use the three equality operators The cl-lib package other functions … Continue reading
lexical scoping and dynamic scoping in Emacs Lisp
In this article, I demonstrate: difference between dynamic scoping and lexical scoping in Emacs Lisp what to watch out for with dynamic scoping what you can do with lexical scoping and lexical closures what happens when you mix lexical scoping … Continue reading
how to check dynamically if lexical scoping is active in Emacs Lisp
The variable lexical-binding specifies whether to use lexical scoping when evaluating code in the current buffer or el file. But checking the value of this variable at a point of code is not a reliable way to check if lexical … Continue reading