X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/da41ffdd089b529c3d5216412d95840e065c3fe3..c8b7a6abd90aab76185202def7049a0ea981d335:/lisp/obsolete/vip.el diff --git a/lisp/obsolete/vip.el b/lisp/obsolete/vip.el index ea102cb0ac..ad6364e3be 100644 --- a/lisp/obsolete/vip.el +++ b/lisp/obsolete/vip.el @@ -1,7 +1,7 @@ ;;; vip.el --- a VI Package for GNU Emacs -;; Copyright (C) 1986-1988, 1992-1993, 1998, 2001-2014 -;; Free Software Foundation, Inc. +;; Copyright (C) 1986-1988, 1992-1993, 1998, 2001-2016 Free Software +;; Foundation, Inc. ;; Author: Masahiko Sato ;; Keywords: emulations @@ -462,7 +462,8 @@ ARG is used as the prefix value for the executed command. If EVENTS is a list of events, which become the beginning of the command." (interactive "P") (let (com key (old-map (current-local-map))) - (if events (setq unread-command-events events)) + (if events (setq unread-command-events + (append events unread-command-events))) (setq prefix-arg arg) (use-local-map vip-emacs-local-map) (unwind-protect @@ -518,7 +519,7 @@ obtained so far, and COM is the command part obtained so far." (while (= char ?U) (vip-describe-arg prefix-arg) (setq char (read-char))) - (setq unread-command-events (list char))) + (push char unread-command-events)) (defun vip-prefix-arg-com (char value com) "Vi operator as prefix argument." @@ -572,7 +573,7 @@ obtained so far, and COM is the command part obtained so far." (while (= char ?U) (vip-describe-arg prefix-arg) (setq char (read-char))) - (setq unread-command-events (list char))) + (push char unread-command-events)) ;; as com is non-nil, this means that we have a command to execute (if (or (= (car com) ?r) (= (car com) ?R)) ;; execute appropriate region command.