diff options
| author | Eli Zaretskii | 2004-02-21 13:37:46 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-02-21 13:37:46 +0000 |
| commit | 69e82404c092d8dbe35e618da04b5bc423f5ef61 (patch) | |
| tree | 5e1d5c1587570f56ed9333b59315b5b4582ed33f /lisp | |
| parent | 8bcfd13b545f05f64ad00cbabfb8bdd1d1dd9b94 (diff) | |
| download | emacs-69e82404c092d8dbe35e618da04b5bc423f5ef61.tar.gz emacs-69e82404c092d8dbe35e618da04b5bc423f5ef61.zip | |
(vcursor-modifiers): New defcustom.
(vcursor-cs-binding): Use vcursor-modifiers instead of a hard-coded list.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/vcursor.el | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ee971eb1c07..2894f660197 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2004-02-21 Klaus Zeitler <kzeitler@lucent.com> | ||
| 2 | |||
| 3 | * vcursor.el (vcursor-modifiers): New defcustom. | ||
| 4 | (vcursor-cs-binding): Use vcursor-modifiers instead of a | ||
| 5 | hard-coded list. | ||
| 6 | |||
| 1 | 2004-02-21 Masatake YAMATO <jet@gyve.org> | 7 | 2004-02-21 Masatake YAMATO <jet@gyve.org> |
| 2 | 8 | ||
| 3 | * play/animate.el (animate-birthday-present): Accept names other | 9 | * play/animate.el (animate-birthday-present): Accept names other |
diff --git a/lisp/vcursor.el b/lisp/vcursor.el index 6d06dbdb9dc..4de92f02f0b 100644 --- a/lisp/vcursor.el +++ b/lisp/vcursor.el | |||
| @@ -314,7 +314,7 @@ | |||
| 314 | ;; - The logic in vcursor-find-window is rather complicated and | 314 | ;; - The logic in vcursor-find-window is rather complicated and |
| 315 | ;; therefore bug-prone, though in practice it seems to work OK. | 315 | ;; therefore bug-prone, though in practice it seems to work OK. |
| 316 | ;; | 316 | ;; |
| 317 | ;; Possible enhnacements: | 317 | ;; Possible enhancements: |
| 318 | ;; It would be easy to implement vcursor-push (save vcursor position | 318 | ;; It would be easy to implement vcursor-push (save vcursor position |
| 319 | ;; as mark and deactivate) and vcursor-pop (deactivate vcursor and | 319 | ;; as mark and deactivate) and vcursor-pop (deactivate vcursor and |
| 320 | ;; move to last pushed position) functions. | 320 | ;; move to last pushed position) functions. |
| @@ -342,9 +342,14 @@ disable the vcursor." | |||
| 342 | :type '(choice (const t) (const nil) (const copy)) | 342 | :type '(choice (const t) (const nil) (const copy)) |
| 343 | :group 'vcursor) | 343 | :group 'vcursor) |
| 344 | 344 | ||
| 345 | (defcustom vcursor-modifiers (list 'control 'shift) | ||
| 346 | "*A list of modifiers that are used to define vcursor key bindings." | ||
| 347 | :type '(repeat symbol) | ||
| 348 | :group 'vcursor) | ||
| 349 | |||
| 345 | ;; Needed for defcustom, must be up here | 350 | ;; Needed for defcustom, must be up here |
| 346 | (defun vcursor-cs-binding (base &optional meta) | 351 | (defun vcursor-cs-binding (base &optional meta) |
| 347 | (vector (let ((key (list 'control 'shift (intern base)))) | 352 | (vector (let ((key (append vcursor-modifiers (list (intern base))))) |
| 348 | (if meta | 353 | (if meta |
| 349 | (cons 'meta key) | 354 | (cons 'meta key) |
| 350 | key)))) | 355 | key)))) |