summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-06-20 00:11:42 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-20 12:51:38 +0200
commit82aeaf16061e5c79b5d936ae8af33783b572a40f (patch)
tree3a25115bc9cfd2d18917419c202124f5f5eddf28
parenta4047f9d9817c6b39bff4ce31fb4a1270598cdad (diff)
downloademacs-82aeaf16061e5c79b5d936ae8af33783b572a40f.tar.gz
Remove XEmacs compat code from viper-macs.el
* lisp/emulation/viper-macs.el (viper-char-array-to-macro): Remove XEmacs compat code.
-rw-r--r--lisp/emulation/viper-macs.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el
index 37ab81d78ef..1a7f70103db 100644
--- a/lisp/emulation/viper-macs.el
+++ b/lisp/emulation/viper-macs.el
@@ -815,12 +815,7 @@ mistakes in macro names to be passed to this function is to use
;; convert strings or arrays of characters to Viper macro form
(defun viper-char-array-to-macro (array)
- (let ((vec (vconcat array))
- macro)
- (if (featurep 'xemacs)
- (setq macro (mapcar 'character-to-event vec))
- (setq macro vec))
- (vconcat (mapcar 'viper-event-key macro))))
+ (vconcat (mapcar 'viper-event-key (vconcat array))))
;; For macros bodies and names, goes over MACRO and checks if all members are
;; names of keys (actually, it only checks if they are symbols or lists