comparison lisp/mouse.el @ 13068:9cc4392719e3

[These changes were actually in the previous version. This version is a doc fix.] (mouse-drag-vertical-line): New function. (mouse-scroll-min-lines): New variable. (mouse-scroll-subr): Use it. (mouse-drag-region): Record where the mouse drag has reached and use that to adjust the drag event before replaying it. (mouse-drag-region): Store the right end position in the drag-event before replaying it at the end. (mouse-skip-word): Skip complete symbol when over a character with symbol syntax.
author Richard M. Stallman <rms@gnu.org>
date Sun, 24 Sep 1995 23:20:39 +0000
parents d07703594662
children 4bc9015f709e
comparison
equal deleted inserted replaced
13067:fef2a9095f0c 13068:9cc4392719e3
426 the mouse back into the window, or release the button. 426 the mouse back into the window, or release the button.
427 This variable's value may be non-integral. 427 This variable's value may be non-integral.
428 Setting this to zero causes Emacs to scroll as fast as it can.") 428 Setting this to zero causes Emacs to scroll as fast as it can.")
429 429
430 (defvar mouse-scroll-min-lines 1 430 (defvar mouse-scroll-min-lines 1
431 "*The minimum number of lines scrolled at a time by dragging the mouse 431 "*The minimum number of lines scrolled by dragging mouse out of window.
432 beyond the edge of a window.") 432 Moving the mouse out the top or bottom edge of the window begins
433 scrolling repeatedly. The number of lines scrolled per repetition
434 is normally equal to the number of lines beyond the window edge that
435 the mouse has moved. However, it always scrolls at least the number
436 of lines specified by this variable.")
433 437
434 (defun mouse-scroll-subr (window jump &optional overlay start) 438 (defun mouse-scroll-subr (window jump &optional overlay start)
435 "Scroll the window WINDOW, JUMP lines at a time, until new input arrives. 439 "Scroll the window WINDOW, JUMP lines at a time, until new input arrives.
436 If OVERLAY is an overlay, let it stretch from START to the far edge of 440 If OVERLAY is an overlay, let it stretch from START to the far edge of
437 the newly visible text. 441 the newly visible text.