From: Glenn Morris Date: Wed, 22 Oct 2008 06:44:52 +0000 (+0000) Subject: (universal-coding-system-argument): Check for C-g. (Bug#1205) X-Git-Tag: emacs-pretest-23.0.90~2274 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=735c5b1760012aec1fecec3cfc005f7eea7c9022;p=emacs.git (universal-coding-system-argument): Check for C-g. (Bug#1205) --- diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 69d4d933d02..894f2f70216 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -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)