Updating describe-bindings

One of the things you often want to know is what keybindings are available for the current buffer. Emacs, of course, has a command for that: describe-bindings, bound to Ctrl+h b. I never use it.

The problem is that it outputs too much garbage in an unhelpful way. Lars Ingebrigtsen has noticed this too an decided to do something about it. Part of the problem is that the original code was written in C making it hard for many to work on. Happily, it’s recently been refactored in Elisp so changes are easier. Ingebrigtsen took advantage of that to prettify the output and put the relevant information at the top.

In Ingebrigtsen’s post you can see side-by-side comparisons of the old versus Ingebrigtsen’s updated version. The best news is that the changes are already on trunk in the Git Emacs repository so we should be seeing them soon.

The describe-bindings function has been in Emacs for a long time without much change but now it’s been significantly revised. This story—and many others like it—put the lie to the ignorant assertions on social media that Emacs is old and dead. It may be old, for software, but it’s far from dead. Indeed, even ancient and relatively unimportant parts of it are candidates for improvement.

And, of course, thanks to Ingebrigtsen for bringing us this improvement.

This entry was posted in General and tagged . Bookmark the permalink.