Aaron S. Hawley (aaronhawley) wrote,
Aaron S. Hawley

M-x in Emacs 24.3 is now in Lisp

It didn't make the NEWS file for Emacs 24.3, but Emacs now ships with an `M-x' (`execute-extended-command') that is written in Lisp. It is no longer written in C. This should make it easy for users to extend and do new things with this command (execute command name at point, display prefix arguments numerically, ...) by easily redefining it. Although, it was possible to "advise" the C implementation before given Emacs good advising system with `defadvice'.

I had talked about Coding Emacs's M-x in Lisp on this blog over 3 years ago. It was accepted in Emacs after I finally got around to posting the code to gnu-emacs-sources last year.

Thanks to Stefan Monnier, one of the lead maintainers, for doing most of the leg work of merging these bits into Emacs.
Tags: emacs, free software, programming

  • User liberation: New video from the FSF

    from fsf.org community blog The last 45 seconds is pretty cool. There's a build of Gstreamer, interspersed with screenshots of Gnome,…

  • Big Emacs reference card updated

    With the release of Emacs 24.3 last month and the big changes at EmacsWiki, I've posted an updated version of the giant Emacs reference card. It…

  • Frobbing pi in Emacs Lisp

    What follows is 500 years of technique used to calculate pi -- in Emacs -- up to 1997. No, Leibniz didn't write Emacs. However, the Lisp available…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.