# HG changeset patch # User Eli Zaretskii # Date 1077370560 0 # Node ID 640d878dae87a801763da5d1cc861c7edca6ac7b # Parent 7f9bfa8b7066398ec95c1a29ca1889045b7a0a26 (vcursor-modifiers): New defcustom. (vcursor-cs-binding): Use vcursor-modifiers instead of a hard-coded list. diff -r 7f9bfa8b7066 -r 640d878dae87 lisp/vcursor.el --- a/lisp/vcursor.el Sat Feb 21 13:30:42 2004 +0000 +++ b/lisp/vcursor.el Sat Feb 21 13:36:00 2004 +0000 @@ -314,7 +314,7 @@ ;; - The logic in vcursor-find-window is rather complicated and ;; therefore bug-prone, though in practice it seems to work OK. ;; -;; Possible enhnacements: +;; Possible enhancements: ;; It would be easy to implement vcursor-push (save vcursor position ;; as mark and deactivate) and vcursor-pop (deactivate vcursor and ;; move to last pushed position) functions. @@ -342,9 +342,14 @@ :type '(choice (const t) (const nil) (const copy)) :group 'vcursor) +(defcustom vcursor-modifiers (list 'control 'shift) + "*A list of modifiers that are used to define vcursor key bindings." + :type '(repeat symbol) + :group 'vcursor) + ;; Needed for defcustom, must be up here (defun vcursor-cs-binding (base &optional meta) - (vector (let ((key (list 'control 'shift (intern base)))) + (vector (let ((key (append vcursor-modifiers (list (intern base))))) (if meta (cons 'meta key) key))))