diff options
| author | Richard M. Stallman | 1997-04-13 07:51:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-13 07:51:54 +0000 |
| commit | 00ed33e7ab1f430e43aeff27c3aa767590b2207e (patch) | |
| tree | c0cb9b1be105cea21a951f8a31a5a654feeb62c8 /lisp/avoid.el | |
| parent | d61140e89d8800ae17aef48fe5d97941ad005a87 (diff) | |
| download | emacs-00ed33e7ab1f430e43aeff27c3aa767590b2207e.tar.gz emacs-00ed33e7ab1f430e43aeff27c3aa767590b2207e.zip | |
Add defgroup; use defcustom for user vars.
Diffstat (limited to 'lisp/avoid.el')
| -rw-r--r-- | lisp/avoid.el | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/lisp/avoid.el b/lisp/avoid.el index c1bd595f146..48f0914f163 100644 --- a/lisp/avoid.el +++ b/lisp/avoid.el | |||
| @@ -69,27 +69,41 @@ | |||
| 69 | 69 | ||
| 70 | (provide 'avoid) | 70 | (provide 'avoid) |
| 71 | 71 | ||
| 72 | (defgroup avoid nil | ||
| 73 | "Make mouse pointer stay out of the way of editing." | ||
| 74 | :prefix "mouse-avoidance-" | ||
| 75 | :group 'mouse) | ||
| 76 | |||
| 77 | |||
| 72 | (defvar mouse-avoidance-mode nil | 78 | (defvar mouse-avoidance-mode nil |
| 73 | "Value is t or a symbol if the mouse pointer should avoid the cursor. | 79 | "Value is t or a symbol if the mouse pointer should avoid the cursor. |
| 74 | See function `mouse-avoidance-mode' for possible values. Changing this | 80 | See function `mouse-avoidance-mode' for possible values. Changing this |
| 75 | variable is NOT the recommended way to change modes; use that function | 81 | variable is NOT the recommended way to change modes; use that function |
| 76 | instead.") | 82 | instead.") |
| 77 | 83 | ||
| 78 | (defvar mouse-avoidance-nudge-dist 15 | 84 | (defcustom mouse-avoidance-nudge-dist 15 |
| 79 | "*Average distance that mouse will be moved when approached by cursor. | 85 | "*Average distance that mouse will be moved when approached by cursor. |
| 80 | Only applies in mouse-avoidance-mode `jump' and its derivatives. | 86 | Only applies in mouse-avoidance-mode `jump' and its derivatives. |
| 81 | For best results make this larger than `mouse-avoidance-threshold'.") | 87 | For best results make this larger than `mouse-avoidance-threshold'." |
| 88 | :type 'integer | ||
| 89 | :group 'avoid) | ||
| 82 | 90 | ||
| 83 | (defvar mouse-avoidance-nudge-var 10 | 91 | (defcustom mouse-avoidance-nudge-var 10 |
| 84 | "*Variability of `mouse-avoidance-nudge-dist' (which see).") | 92 | "*Variability of `mouse-avoidance-nudge-dist' (which see)." |
| 93 | :type 'integer | ||
| 94 | :group 'avoid) | ||
| 85 | 95 | ||
| 86 | (defvar mouse-avoidance-animation-delay .01 | 96 | (defcustom mouse-avoidance-animation-delay .01 |
| 87 | "Delay between animation steps, in seconds.") | 97 | "Delay between animation steps, in seconds." |
| 98 | :type 'number | ||
| 99 | :group 'avoid) | ||
| 88 | 100 | ||
| 89 | (defvar mouse-avoidance-threshold 5 | 101 | (defcustom mouse-avoidance-threshold 5 |
| 90 | "*Mouse-pointer's flight distance. | 102 | "*Mouse-pointer's flight distance. |
| 91 | If the cursor gets closer than this, the mouse pointer will move away. | 103 | If the cursor gets closer than this, the mouse pointer will move away. |
| 92 | Only applies in mouse-avoidance-modes `animate' and `jump'.") | 104 | Only applies in mouse-avoidance-modes `animate' and `jump'." |
| 105 | :type 'integer | ||
| 106 | :group 'avoid) | ||
| 93 | 107 | ||
| 94 | ;; Internal variables | 108 | ;; Internal variables |
| 95 | (defvar mouse-avoidance-state nil) | 109 | (defvar mouse-avoidance-state nil) |