aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-10-08 16:31:12 +0000
committerDave Love2000-10-08 16:31:12 +0000
commitdf003ee6abf255660c89a9f9ae9848b0feb54b4b (patch)
treeacf3a7711fb960370fd80b1e2076f3749eb5421a
parentca87e9606ad5c38ac0972b0abc633e5a739b5aa3 (diff)
downloademacs-df003ee6abf255660c89a9f9ae9848b0feb54b4b.tar.gz
emacs-df003ee6abf255660c89a9f9ae9848b0feb54b4b.zip
(vcursor-cs-binding): Remove compatibility code.
Clean up remainder.
-rw-r--r--lisp/vcursor.el15
1 files changed, 5 insertions, 10 deletions
diff --git a/lisp/vcursor.el b/lisp/vcursor.el
index 386f2d2959f..3c7afbb5b0b 100644
--- a/lisp/vcursor.el
+++ b/lisp/vcursor.el
@@ -39,7 +39,6 @@
39;; or t), which means that copying from the vcursor will be turned 39;; or t), which means that copying from the vcursor will be turned
40;; off after any operation not involving the vcursor, but the 40;; off after any operation not involving the vcursor, but the
41;; vcursor itself will be left alone. 41;; vcursor itself will be left alone.
42;; - should now work unmodified under XEmacs
43;; - works on dumb terminals with Emacs 19.29 and later 42;; - works on dumb terminals with Emacs 19.29 and later
44;; - new keymap vcursor-map for binding to a prefix key 43;; - new keymap vcursor-map for binding to a prefix key
45;; - vcursor-compare-windows substantially improved 44;; - vcursor-compare-windows substantially improved
@@ -344,14 +343,11 @@ disable the vcursor."
344 :group 'vcursor) 343 :group 'vcursor)
345 344
346;; Needed for defcustom, must be up here 345;; Needed for defcustom, must be up here
347(if (not (string-match "XEmacs" emacs-version)) 346(defun vcursor-cs-binding (base &optional meta)
348 (defun vcursor-cs-binding (base &optional meta) 347 (vector (let ((key (list 'control 'shift (intern base))))
349 (read (concat "[" (if meta "M-" "") "C-S-" base "]"))) 348 (if meta
350 (require 'overlay) 349 (cons 'meta key)
351 (defun vcursor-cs-binding (base &optional meta) 350 key))))
352 (read (concat "[(" (if meta "meta " "") "control shift "
353 base ")]")))
354 )
355 351
356(defun vcursor-bind-keys (var value) 352(defun vcursor-bind-keys (var value)
357 "Alter the value of the variable VAR to VALUE, binding keys as required. 353 "Alter the value of the variable VAR to VALUE, binding keys as required.
@@ -563,7 +559,6 @@ If that's disabled, don't go anywhere but don't complain."
563 (and (overlayp vcursor-overlay) 559 (and (overlayp vcursor-overlay)
564 (overlay-buffer vcursor-overlay) 560 (overlay-buffer vcursor-overlay)
565 (set-buffer (overlay-buffer vcursor-overlay)) 561 (set-buffer (overlay-buffer vcursor-overlay))
566 (overlay-start vcursor-overlay) ; needed for XEmacs
567 (goto-char (overlay-start vcursor-overlay))) 562 (goto-char (overlay-start vcursor-overlay)))
568 ) 563 )
569 564