diff options
| author | Michael Albinus | 2018-08-04 17:26:55 +0200 |
|---|---|---|
| committer | Michael Albinus | 2018-08-04 17:26:55 +0200 |
| commit | c27bd469f1a6f962798caaa584c36ccbe5e42936 (patch) | |
| tree | 7281546ca7f09cdae85bc52063c22c860736e198 | |
| parent | b9e2a91ec5b005c624eaca32064dc60b5f3131f9 (diff) | |
| download | emacs-c27bd469f1a6f962798caaa584c36ccbe5e42936.tar.gz emacs-c27bd469f1a6f962798caaa584c36ccbe5e42936.zip | |
* lisp/international/mule-cmds.el (universal-coding-system-argument):
Use `current-input-mode' for determining quit char.
| -rw-r--r-- | lisp/international/mule-cmds.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index cf6a8c78d09..2bde83f4eab 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -300,8 +300,7 @@ wrong, use this command again to toggle back to the right mode." | |||
| 300 | (cmd (key-binding keyseq)) | 300 | (cmd (key-binding keyseq)) |
| 301 | prefix) | 301 | prefix) |
| 302 | ;; read-key-sequence ignores quit, so make an explicit check. | 302 | ;; read-key-sequence ignores quit, so make an explicit check. |
| 303 | ;; Like many places, this assumes quit == C-g, but it need not be. | 303 | (if (equal last-input-event (nth 3 (current-input-mode))) |
| 304 | (if (equal last-input-event ?\C-g) | ||
| 305 | (keyboard-quit)) | 304 | (keyboard-quit)) |
| 306 | (when (memq cmd '(universal-argument digit-argument)) | 305 | (when (memq cmd '(universal-argument digit-argument)) |
| 307 | (call-interactively cmd) | 306 | (call-interactively cmd) |
| @@ -314,16 +313,16 @@ wrong, use this command again to toggle back to the right mode." | |||
| 314 | (let ((current-prefix-arg prefix-arg) | 313 | (let ((current-prefix-arg prefix-arg) |
| 315 | ;; Have to bind `last-command-event' here so that | 314 | ;; Have to bind `last-command-event' here so that |
| 316 | ;; `digit-argument', for instance, can compute the | 315 | ;; `digit-argument', for instance, can compute the |
| 317 | ;; prefix arg. | 316 | ;; `prefix-arg'. |
| 318 | (last-command-event (aref keyseq 0))) | 317 | (last-command-event (aref keyseq 0))) |
| 319 | (call-interactively cmd))) | 318 | (call-interactively cmd))) |
| 320 | 319 | ||
| 321 | ;; This is the final call to `universal-argument-other-key', which | 320 | ;; This is the final call to `universal-argument-other-key', which |
| 322 | ;; set's the final `prefix-arg. | 321 | ;; sets the final `prefix-arg'. |
| 323 | (let ((current-prefix-arg prefix-arg)) | 322 | (let ((current-prefix-arg prefix-arg)) |
| 324 | (call-interactively cmd)) | 323 | (call-interactively cmd)) |
| 325 | 324 | ||
| 326 | ;; Read the command to execute with the given prefix arg. | 325 | ;; Read the command to execute with the given `prefix-arg'. |
| 327 | (setq prefix prefix-arg | 326 | (setq prefix prefix-arg |
| 328 | keyseq (read-key-sequence nil t) | 327 | keyseq (read-key-sequence nil t) |
| 329 | cmd (key-binding keyseq))) | 328 | cmd (key-binding keyseq))) |