diff options
| author | Michael Kifer | 2005-07-19 05:01:20 +0000 |
|---|---|---|
| committer | Michael Kifer | 2005-07-19 05:01:20 +0000 |
| commit | acfb6f24f7aed6f004f1cc452761d1d17f3041ff (patch) | |
| tree | 1914f928acb5ecb6dcc15acfeb937cd3e839c727 | |
| parent | c061dd8f05146e6724b6fc4d5f2b524e69872cac (diff) | |
| download | emacs-acfb6f24f7aed6f004f1cc452761d1d17f3041ff.tar.gz emacs-acfb6f24f7aed6f004f1cc452761d1d17f3041ff.zip | |
* viper-cmd.el (viper-escape-to-state): bug fix
(viper-envelop-ESC-key): changed the definition of fast keysequence so
it'll work with keyboard macros
* ediff.el (ediff-patch-buffer): changed the docstring.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/ediff.el | 12 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 10 |
3 files changed, 22 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e17939aab1..94892c13f58 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2005-07-19 Michael Kifer <kifer@cs.stonybrook.edu> | ||
| 2 | |||
| 3 | * viper-cmd.el (viper-escape-to-state): bug fix | ||
| 4 | (viper-envelop-ESC-key): changed the definition of fast keysequence so | ||
| 5 | it'll work with keyboard macros | ||
| 6 | |||
| 7 | * ediff.el (ediff-patch-buffer): changed the docstring. | ||
| 8 | |||
| 1 | 2005-07-19 Kenichi Handa <handa@m17n.org> | 9 | 2005-07-19 Kenichi Handa <handa@m17n.org> |
| 2 | 10 | ||
| 3 | * international/mule-cmds.el (select-safe-coding-system): Try to | 11 | * international/mule-cmds.el (select-safe-coding-system): Try to |
diff --git a/lisp/ediff.el b/lisp/ediff.el index f842e9dec6c..1bf52b1c59f 100644 --- a/lisp/ediff.el +++ b/lisp/ediff.el | |||
| @@ -1357,11 +1357,13 @@ buffer. If odd -- assume it is in a file." | |||
| 1357 | 1357 | ||
| 1358 | ;;;###autoload | 1358 | ;;;###autoload |
| 1359 | (defun ediff-patch-buffer (&optional arg patch-buf) | 1359 | (defun ediff-patch-buffer (&optional arg patch-buf) |
| 1360 | "Run Ediff by patching BUFFER-NAME. | 1360 | "Run Ediff by patching the buffer specified at prompt. |
| 1361 | Without prefix argument: asks if the patch is in some buffer and prompts for | 1361 | Without the optional prefix ARG, asks if the patch is in some buffer and |
| 1362 | the buffer or a file, depending on the answer. | 1362 | prompts for the buffer or a file, depending on the answer. |
| 1363 | With prefix arg=1: assumes the patch is in a file and prompts for the file. | 1363 | With ARG=1, assumes the patch is in a file and prompts for the file. |
| 1364 | With prefix arg=2: assumes the patch is in a buffer and prompts for the buffer." | 1364 | With ARG=2, assumes the patch is in a buffer and prompts for the buffer. |
| 1365 | PATCH-BUF is an optional argument, which specifies the buffer that contains the | ||
| 1366 | patch. If not given, the user is prompted according to the prefix argument." | ||
| 1365 | (interactive "P") | 1367 | (interactive "P") |
| 1366 | (require 'ediff-ptch) | 1368 | (require 'ediff-ptch) |
| 1367 | (setq patch-buf | 1369 | (setq patch-buf |
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index ecd5251891c..47b677b2e19 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -774,7 +774,8 @@ Vi's prefix argument will be used. Otherwise, the prefix argument passed to | |||
| 774 | ) | 774 | ) |
| 775 | 775 | ||
| 776 | (if (commandp com) | 776 | (if (commandp com) |
| 777 | (progn | 777 | ;; pretend that current state is the state we excaped to |
| 778 | (let ((viper-current-state state)) | ||
| 778 | (setq prefix-arg (or prefix-arg arg)) | 779 | (setq prefix-arg (or prefix-arg arg)) |
| 779 | (command-execute com))) | 780 | (command-execute com))) |
| 780 | ) | 781 | ) |
| @@ -996,9 +997,12 @@ as a Meta key and any number of multiple escapes is allowed." | |||
| 996 | (inhibit-quit t)) | 997 | (inhibit-quit t)) |
| 997 | (if (viper-ESC-event-p event) | 998 | (if (viper-ESC-event-p event) |
| 998 | (progn | 999 | (progn |
| 999 | (if (viper-fast-keysequence-p) | 1000 | ;; Emacs 22.50.8 introduced a bug, which makes even a single ESC into |
| 1001 | ;; a fast keyseq. To guard against this, we added a check if there | ||
| 1002 | ;; are other events as well | ||
| 1003 | (if (and (viper-fast-keysequence-p) unread-command-events) | ||
| 1000 | (progn | 1004 | (progn |
| 1001 | (let (minor-mode-map-alist) | 1005 | (let (minor-mode-map-alist emulation-mode-map-alists) |
| 1002 | (viper-set-unread-command-events event) | 1006 | (viper-set-unread-command-events event) |
| 1003 | (setq keyseq (read-key-sequence nil 'continue-echo)) | 1007 | (setq keyseq (read-key-sequence nil 'continue-echo)) |
| 1004 | ) ; let | 1008 | ) ; let |