Subject: Re: bug#27980: disabled-command-function should accept ^G

From: Tino Calancha <[email-masked]>
Date: Sun, 06 Aug 2017 16:09:19 +0900

積丹尼 Dan Jacobson <[email-masked]> writes:

> disabled-command-function is an autoloaded compiled Lisp function in
> ‘novice.el’.
>
> It prompts with
>
>      (message "Type y, n, ! or SPC (the space bar): ")
>
> However in 99% of the cases, the user has triggered it by mistake,
> and wishes to get out with ^G, and not be bothered to read the details.
Reading those details i discovered several very useful disabled commands;
i enable some of them in my init file at startup.
>
> However ^G is disabled here.
>
> Repeated hitting of it will not get one out and back to editing.
>
> I vote ^G be mapped to "n", and be listed in the message.
For me C-g it works:
emacs -Q ~
a ; `dired-find-alternate-file' (disabled by default)
;; Appear the message.
C-g ; The message is gone; the command was canceled.