Short Yes/No Answers

Like most longer term Emacs users, one of the first things I did was to get rid of the annoying long-form Yes/No questions that required you to answer “yes” or “no” explicitly. That was easy to do. I simply aliased y-or-n-p to yes-or-no-p. The same code is in virtually everybody’s init.el if they started before Emacs 28.

Starting in Emacs 28, the variable use-short-answers was introduced. When non nil it causes yes-or-no-p to call y-or-n-p to ask the question instead of following its normal path.

Lennart Karssen over at Polyomica recently discovered this and wrote a short post about it. He, like almost everyone else hates the long answers. They’re there for a reason, of course, and the documentation for the variable recommends against setting it non nil but I doubt very many folks follow that advice.

I’ve had my original aliasing code for at least 17 years and see no reason to change it. When use-short-answers was first introduced, I thought I should adopt it but I never did and as far as I can see, it doesn’t make any difference.

In the unlikely event that you weren’t aware of how to turn off the requirement for entering long answers, take a look Karssen’s post or just check the documentation for use-short-answers.

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