all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#27980: disabled-command-function should accept ^G
@ 2017-08-06  3:07 積丹尼 Dan Jacobson
  2017-08-06  7:09 ` Tino Calancha
  2017-08-06 12:59 ` 積丹尼 Dan Jacobson
  0 siblings, 2 replies; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-08-06  3:07 UTC (permalink / raw)
  To: 27980

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.

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27980: disabled-command-function should accept ^G
  2017-08-06  3:07 bug#27980: disabled-command-function should accept ^G 積丹尼 Dan Jacobson
@ 2017-08-06  7:09 ` Tino Calancha
  2017-08-06 12:59 ` 積丹尼 Dan Jacobson
  1 sibling, 0 replies; 4+ messages in thread
From: Tino Calancha @ 2017-08-06  7:09 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 27980

積丹尼 Dan Jacobson <jidanni@jidanni.org> 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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27980: disabled-command-function should accept ^G
  2017-08-06  3:07 bug#27980: disabled-command-function should accept ^G 積丹尼 Dan Jacobson
  2017-08-06  7:09 ` Tino Calancha
@ 2017-08-06 12:59 ` 積丹尼 Dan Jacobson
  2017-08-06 13:06   ` Tino Calancha
  1 sibling, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-08-06 12:59 UTC (permalink / raw)
  To: Tino Calancha; +Cc: 27980

OK ^G is working again for me now.

Well my only request now is ^G should be listed along with the rest of the keys.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27980: disabled-command-function should accept ^G
  2017-08-06 12:59 ` 積丹尼 Dan Jacobson
@ 2017-08-06 13:06   ` Tino Calancha
  0 siblings, 0 replies; 4+ messages in thread
From: Tino Calancha @ 2017-08-06 13:06 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 27980, Tino Calancha

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]



On Sun, 6 Aug 2017, 積丹尼 Dan Jacobson wrote:

> OK ^G is working again for me now.
>
> Well my only request now is ^G should be listed along with the rest of the keys.
Well, C-g is somehow an universal way of cancel whatever interactive 
command.  It's assumed that any kind of prompt can be safely canceled with C-g.
That is  from lesson #1 in Emacs; i don't think we need to mention it in 
every prompt.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-06 13:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-06  3:07 bug#27980: disabled-command-function should accept ^G 積丹尼 Dan Jacobson
2017-08-06  7:09 ` Tino Calancha
2017-08-06 12:59 ` 積丹尼 Dan Jacobson
2017-08-06 13:06   ` Tino Calancha

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.