aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-03 22:19:10 +0000
committerRichard M. Stallman1997-05-03 22:19:10 +0000
commit3b558d418cec800616a040cb0f822c6901d948dd (patch)
tree105aa611490b679471e9b1fb82091d70431e6bb1
parent41d34bed16caa917a16de46ca1de7e71290e84a0 (diff)
downloademacs-3b558d418cec800616a040cb0f822c6901d948dd.tar.gz
emacs-3b558d418cec800616a040cb0f822c6901d948dd.zip
Use defcustom.
-rw-r--r--lisp/mouse.el24
1 files changed, 16 insertions, 8 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 48623cebad8..d2f76cd138c 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -37,8 +37,10 @@
37;;; Indent track-mouse like progn. 37;;; Indent track-mouse like progn.
38(put 'track-mouse 'lisp-indent-function 0) 38(put 'track-mouse 'lisp-indent-function 0)
39 39
40(defvar mouse-yank-at-point nil 40(defcustom mouse-yank-at-point nil
41 "*If non-nil, mouse yank commands yank at point instead of at click.") 41 "*If non-nil, mouse yank commands yank at point instead of at click."
42 :type 'boolean
43 :group 'mouse)
42 44
43;; Provide a mode-specific menu on a mouse button. 45;; Provide a mode-specific menu on a mouse button.
44 46
@@ -426,22 +428,26 @@ This should be bound to a mouse drag event."
426 (setq mouse-last-region-end (region-end)) 428 (setq mouse-last-region-end (region-end))
427 (setq mouse-last-region-tick (buffer-modified-tick))) 429 (setq mouse-last-region-tick (buffer-modified-tick)))
428 430
429(defvar mouse-scroll-delay 0.25 431(defcustom mouse-scroll-delay 0.25
430 "*The pause between scroll steps caused by mouse drags, in seconds. 432 "*The pause between scroll steps caused by mouse drags, in seconds.
431If you drag the mouse beyond the edge of a window, Emacs scrolls the 433If you drag the mouse beyond the edge of a window, Emacs scrolls the
432window to bring the text beyond that edge into view, with a delay of 434window to bring the text beyond that edge into view, with a delay of
433this many seconds between scroll steps. Scrolling stops when you move 435this many seconds between scroll steps. Scrolling stops when you move
434the mouse back into the window, or release the button. 436the mouse back into the window, or release the button.
435This variable's value may be non-integral. 437This variable's value may be non-integral.
436Setting this to zero causes Emacs to scroll as fast as it can.") 438Setting this to zero causes Emacs to scroll as fast as it can."
439 :type 'number
440 :group 'mouse)
437 441
438(defvar mouse-scroll-min-lines 1 442(defcustom mouse-scroll-min-lines 1
439 "*The minimum number of lines scrolled by dragging mouse out of window. 443 "*The minimum number of lines scrolled by dragging mouse out of window.
440Moving the mouse out the top or bottom edge of the window begins 444Moving the mouse out the top or bottom edge of the window begins
441scrolling repeatedly. The number of lines scrolled per repetition 445scrolling repeatedly. The number of lines scrolled per repetition
442is normally equal to the number of lines beyond the window edge that 446is normally equal to the number of lines beyond the window edge that
443the mouse has moved. However, it always scrolls at least the number 447the mouse has moved. However, it always scrolls at least the number
444of lines specified by this variable.") 448of lines specified by this variable."
449 :type 'integer
450 :group 'mouse)
445 451
446(defun mouse-scroll-subr (window jump &optional overlay start) 452(defun mouse-scroll-subr (window jump &optional overlay start)
447 "Scroll the window WINDOW, JUMP lines at a time, until new input arrives. 453 "Scroll the window WINDOW, JUMP lines at a time, until new input arrives.
@@ -1267,10 +1273,12 @@ again. If you do this twice in the same position, it kills the selection."
1267 (overlay-start mouse-secondary-overlay) 1273 (overlay-start mouse-secondary-overlay)
1268 (overlay-end mouse-secondary-overlay))))))) 1274 (overlay-end mouse-secondary-overlay)))))))
1269 1275
1270(defvar mouse-menu-buffer-maxlen 20 1276(defcustom mouse-menu-buffer-maxlen 20
1271 "*Number of buffers in one pane (submenu) of the buffer menu. 1277 "*Number of buffers in one pane (submenu) of the buffer menu.
1272If we have lots of buffers, divide them into groups of 1278If we have lots of buffers, divide them into groups of
1273`mouse-menu-buffer-maxlen' and make a pane (or submenu) for each one.") 1279`mouse-menu-buffer-maxlen' and make a pane (or submenu) for each one."
1280 :type 'integer
1281 :group 'mouse)
1274 1282
1275(defvar mouse-buffer-menu-mode-groups 1283(defvar mouse-buffer-menu-mode-groups
1276 '(("Info\\|Help\\|Apropos\\|Man" . "Help") 1284 '(("Info\\|Help\\|Apropos\\|Man" . "Help")