diff options
| author | Lars Ingebrigtsen | 2019-06-20 00:59:07 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-20 12:51:39 +0200 |
| commit | 717a99dacffaa8981d907d23e0fb0af7a127149f (patch) | |
| tree | 045e21c4d576829372f5b8c6055f6bd4e4e34b5c | |
| parent | dfec2bc7853fbef72f4306dcee3807b5dc9f6064 (diff) | |
| download | emacs-717a99dacffaa8981d907d23e0fb0af7a127149f.tar.gz emacs-717a99dacffaa8981d907d23e0fb0af7a127149f.zip | |
Clean up after previous viper patch
* lisp/emulation/viper-ex.el (viper-get-ex-address-subr): Fix
syntax error in last checkin.
(viper-ex): Don't use now-obsolete function.
| -rw-r--r-- | lisp/emulation/viper-ex.el | 10 | ||||
| -rw-r--r-- | lisp/emulation/viper-macs.el | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el index 56ed2f7d99f..f64960dd753 100644 --- a/lisp/emulation/viper-ex.el +++ b/lisp/emulation/viper-ex.el | |||
| @@ -678,7 +678,7 @@ reversed." | |||
| 678 | (viper-get-ex-token) | 678 | (viper-get-ex-token) |
| 679 | (cond ((memq ex-token-type '(command end-mark)) | 679 | (cond ((memq ex-token-type '(command end-mark)) |
| 680 | (if address (setq ex-addresses (cons address ex-addresses))) | 680 | (if address (setq ex-addresses (cons address ex-addresses))) |
| 681 | (viper-deactivate-mark) | 681 | (deactivate-mark) |
| 682 | (let ((cmd (ex-cmd-assoc ex-token ex-token-alist))) | 682 | (let ((cmd (ex-cmd-assoc ex-token ex-token-alist))) |
| 683 | (if (null cmd) | 683 | (if (null cmd) |
| 684 | (error "`%s': %s" ex-token viper-BadExCommand)) | 684 | (error "`%s': %s" ex-token viper-BadExCommand)) |
| @@ -881,9 +881,7 @@ reversed." | |||
| 881 | (if (null ex-token) | 881 | (if (null ex-token) |
| 882 | (exchange-point-and-mark) | 882 | (exchange-point-and-mark) |
| 883 | (goto-char | 883 | (goto-char |
| 884 | (viper-register-to-point | 884 | (viper-register-to-point (1+ (- ex-token ?a)) 'enforce-buffer))) |
| 885 | (1+ (- ex-token ?a))) | ||
| 886 | 'enforce-buffer)) | ||
| 887 | (setq address (point-marker))))) | 885 | (setq address (point-marker))))) |
| 888 | address)) | 886 | address)) |
| 889 | 887 | ||
| @@ -1175,7 +1173,7 @@ reversed." | |||
| 1175 | (princ "\n=============\n") | 1173 | (princ "\n=============\n") |
| 1176 | (princ "\nThe numbers can be given as counts to :next. ") | 1174 | (princ "\nThe numbers can be given as counts to :next. ") |
| 1177 | (princ "\n\nPress any key to continue...\n\n")) | 1175 | (princ "\n\nPress any key to continue...\n\n")) |
| 1178 | (viper-read-event)))))) | 1176 | (read-event)))))) |
| 1179 | 1177 | ||
| 1180 | ;; Ex cd command. Default directory of this buffer changes | 1178 | ;; Ex cd command. Default directory of this buffer changes |
| 1181 | (defun ex-cd () | 1179 | (defun ex-cd () |
| @@ -2242,7 +2240,7 @@ Type `mak ' (including the space) to run make with no args." | |||
| 2242 | (with-output-to-temp-buffer " *viper-info*" | 2240 | (with-output-to-temp-buffer " *viper-info*" |
| 2243 | (princ (concat "\n" file "\n\n\t" info "\n\n"))) | 2241 | (princ (concat "\n" file "\n\n\t" info "\n\n"))) |
| 2244 | (let ((inhibit-quit t)) | 2242 | (let ((inhibit-quit t)) |
| 2245 | (viper-set-unread-command-events (viper-read-event))) | 2243 | (viper-set-unread-command-events (read-event))) |
| 2246 | (kill-buffer " *viper-info*"))) | 2244 | (kill-buffer " *viper-info*"))) |
| 2247 | )) | 2245 | )) |
| 2248 | 2246 | ||
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el index 243a0a8d56f..3dd6a012ab3 100644 --- a/lisp/emulation/viper-macs.el +++ b/lisp/emulation/viper-macs.el | |||
| @@ -874,7 +874,7 @@ mistakes in macro names to be passed to this function is to use | |||
| 874 | ;; read-key then events will be converted to keys, and sometimes | 874 | ;; read-key then events will be converted to keys, and sometimes |
| 875 | ;; (e.g., (control \[)) those keys differ from the corresponding events. | 875 | ;; (e.g., (control \[)) those keys differ from the corresponding events. |
| 876 | ;; So, do not use (setq next-event (read-key)) | 876 | ;; So, do not use (setq next-event (read-key)) |
| 877 | (setq next-event (viper-read-event)) | 877 | (setq next-event (read-event)) |
| 878 | (or (viper-mouse-event-p next-event) | 878 | (or (viper-mouse-event-p next-event) |
| 879 | (setq lis (vconcat lis (vector next-event))))) | 879 | (setq lis (vconcat lis (vector next-event))))) |
| 880 | lis)) | 880 | lis)) |