diff options
| author | Eli Zaretskii | 2002-01-08 17:44:07 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-01-08 17:44:07 +0000 |
| commit | 414eccccce57e6121ed4954769814b048dacd927 (patch) | |
| tree | 2ab09f1b4e7d4cc69eeccec2d8d479205c7e7ae3 | |
| parent | 79ef781d250204bb4167b38ceb14aa80ba83e4f9 (diff) | |
| download | emacs-414eccccce57e6121ed4954769814b048dacd927.tar.gz emacs-414eccccce57e6121ed4954769814b048dacd927.zip | |
(quail-start-translation, quail-start-conversion): Bind
last-command-event, last-command, and this-command in the first let.
This fixes the change from 2000-08-30.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/international/quail.el | 20 |
2 files changed, 19 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3629c46c569..187497ed471 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2002-01-08 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * international/quail.el (quail-start-translation) | ||
| 4 | (quail-start-conversion): Bind last-command-event, last-command, | ||
| 5 | and this-command in the first let. This fixes the change from | ||
| 6 | 2000-08-30. | ||
| 7 | |||
| 1 | 2002-01-08 Michael Kifer <kifer@cs.stonybrook.edu> | 8 | 2002-01-08 Michael Kifer <kifer@cs.stonybrook.edu> |
| 2 | 9 | ||
| 3 | * ediff-hook.el: added an autoload cookie. | 10 | * ediff-hook.el: added an autoload cookie. |
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 1beb34565a0..0c301111dac 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -1363,7 +1363,8 @@ Return the input string." | |||
| 1363 | (overriding-terminal-local-map (quail-translation-keymap)) | 1363 | (overriding-terminal-local-map (quail-translation-keymap)) |
| 1364 | (generated-events nil) | 1364 | (generated-events nil) |
| 1365 | (input-method-function nil) | 1365 | (input-method-function nil) |
| 1366 | (modified-p (buffer-modified-p))) | 1366 | (modified-p (buffer-modified-p)) |
| 1367 | last-command-event last-command this-command) | ||
| 1367 | (setq quail-current-key "" | 1368 | (setq quail-current-key "" |
| 1368 | quail-current-str "" | 1369 | quail-current-str "" |
| 1369 | quail-translating t) | 1370 | quail-translating t) |
| @@ -1380,9 +1381,10 @@ Return the input string." | |||
| 1380 | (if (if key | 1381 | (if (if key |
| 1381 | (and (commandp cmd) (not (eq cmd 'quail-other-command))) | 1382 | (and (commandp cmd) (not (eq cmd 'quail-other-command))) |
| 1382 | (eq cmd 'quail-self-insert-command)) | 1383 | (eq cmd 'quail-self-insert-command)) |
| 1383 | (let ((last-command-event (aref keyseq (1- (length keyseq)))) | 1384 | (progn |
| 1384 | (last-command this-command) | 1385 | (setq last-command-event (aref keyseq (1- (length keyseq))) |
| 1385 | (this-command cmd)) | 1386 | last-command this-command |
| 1387 | this-command cmd) | ||
| 1386 | (setq key t) | 1388 | (setq key t) |
| 1387 | (condition-case err | 1389 | (condition-case err |
| 1388 | (call-interactively cmd) | 1390 | (call-interactively cmd) |
| @@ -1417,7 +1419,8 @@ Return the input string." | |||
| 1417 | (overriding-terminal-local-map (quail-conversion-keymap)) | 1419 | (overriding-terminal-local-map (quail-conversion-keymap)) |
| 1418 | (generated-events nil) | 1420 | (generated-events nil) |
| 1419 | (input-method-function nil) | 1421 | (input-method-function nil) |
| 1420 | (modified-p (buffer-modified-p))) | 1422 | (modified-p (buffer-modified-p)) |
| 1423 | last-command-event last-command this-command) | ||
| 1421 | (setq quail-current-key "" | 1424 | (setq quail-current-key "" |
| 1422 | quail-current-str "" | 1425 | quail-current-str "" |
| 1423 | quail-translating t | 1426 | quail-translating t |
| @@ -1443,9 +1446,10 @@ Return the input string." | |||
| 1443 | nil nil t)) | 1446 | nil nil t)) |
| 1444 | (cmd (lookup-key (quail-conversion-keymap) keyseq))) | 1447 | (cmd (lookup-key (quail-conversion-keymap) keyseq))) |
| 1445 | (if (if key (commandp cmd) (eq cmd 'quail-self-insert-command)) | 1448 | (if (if key (commandp cmd) (eq cmd 'quail-self-insert-command)) |
| 1446 | (let ((last-command-event (aref keyseq (1- (length keyseq)))) | 1449 | (progn |
| 1447 | (last-command this-command) | 1450 | (setq last-command-event (aref keyseq (1- (length keyseq))) |
| 1448 | (this-command cmd)) | 1451 | last-command this-command |
| 1452 | this-command cmd) | ||
| 1449 | (setq key t) | 1453 | (setq key t) |
| 1450 | (condition-case err | 1454 | (condition-case err |
| 1451 | (call-interactively cmd) | 1455 | (call-interactively cmd) |