109 points · by bozhidar · 15y ago · 22 comments
Ultimately, a closure is a (function . state) cons cell. Emacs doesn't need desperately need any new primitive to handle this; it's easy to pass in state to a function that needs it. So while I will certainly take advantage of closures when they become available, I'm not excited like a little kid waiting to open his Christmas. It's nice, but not Earth-shattering. And lexical variable binding comes with significant extensibility downsides when misused.
It sure does. Consider the draconian module system in Node.js that wraps all your code inside a lambda sandwich, shutting it away completely, and then forcing you to petition for access to it on a case-by-case basis. (The justification for this apparently being nothing more sophisticated than "But encapsulation is good.")
This is the programming equivalent of bureaucracy stifling innovation. It is particularly disastrous for writing new tools, which of course is an area where Emacs shines.
If something is not easy to extend in ways that were not intended, it is not easy to extend.
Sorry, I never used Emacs, but are you trying to say that this was previously impossible? Or is it just some new binding?
http://www.emacswiki.org/emacs/CopyingWholeLines
Not having to use 3 keystrokes in the place of one is the whole point of using Emacs.
C-v runs the command scroll-up.
It is bound to C-v, <kp-next>, <next>.
(scroll-up &optional ARG)
Scroll text of selected window upward ARG lines.
If ARG is omitted or nil, scroll upward by a near full screen.
So C-v scrolls by a screenful; M-1 C-v (which you could bind to a single key if you wish) scrolls by a single line.As an example, nobody has a formal grammar that will parse Perl 5, but cperl-mode highlights (and indents, etc.) almost everything you throw at it correctly. In fact, I can't think of anything that doesn't highlight correctly!
(Also, CEDET is in core now, and it has a library for writing parsers. Never seems to work for me, though.)