1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00

(universal-coding-system-argument): Check for C-g. (Bug#1205)

This commit is contained in:
Glenn Morris 2008-10-22 06:44:52 +00:00
parent e368195223
commit 735c5b1760

View file

@ -286,7 +286,10 @@ wrong, use this command again to toggle back to the right mode."
(format "Command to execute with %s:" coding-system)))
(cmd (key-binding keyseq))
prefix)
;; read-key-sequence ignores quit, so make an explicit check.
;; Like many places, this assumes quit == C-g, but it need not be.
(if (char-equal last-input-char ?\C-g)
(keyboard-quit))
(when (memq cmd '(universal-argument digit-argument))
(call-interactively cmd)