News for hackers. Stuff that matters.
Re:Coding Emacs's M-x in Lisp by aerique on Wednesday September 09, 2009 @02:47PM (#813754)
I don't know about anything Emacs internals but what a strange remark: "I recently wanted to change how `M-x' works. The command behind it is called `execute-extended-command'. It is written in C. This is disappointing for my desires to tinker, but not all together surprising either. It is a pretty central piece of the Emacs infrastructure."

It being a central piece of infrastructure I would expect it to be written in a higher level language for better maintainability.

Re:Coding Emacs's M-x in Lisp by alextp on Wednesday September 09, 2009 @03:40PM (#813844)
But since it is a pretty stable and simple structure it is written in a lower level language for either stability or performance or opacity.
Re:Coding Emacs's M-x in Lisp by jrandom on Wednesday September 09, 2009 @07:21PM (#814194)

    (if (and (not (null suggest-key-bindings))
My C-oriented brain screams bloody murder at this. (I still want to learn Clojure.)
Re:Coding Emacs's M-x in Lisp by shaunxcode on Wednesday September 09, 2009 @09:16PM (#814371)
It's because you are missing the other part of the and

  (if (and (not (null suggest-key-bindings))
           (null executing-kbd-macro)) 

  if(not(null(suggest-key-bindings)) && null(executing-kbd-macro))
Does that help?
Re:Coding Emacs's M-x in Lisp by jrandom on Thursday September 10, 2009 @02:06AM (#814756)
No. I mean, I understand it just fine, I just hate the structure of it. Something about it causes revulsion, something that would probably go away if I actually sat down and learned lisp.
Re:Coding Emacs's M-x in Lisp by shaunxcode on Thursday September 10, 2009 @03:46AM (#814851)
you'll end up with the inverse problem when you go back to infix notation though - be warned! when I see func(arg) I feel like I am on the inside of a star fruit.