diff options
| author | Kim F. Storm | 2004-11-13 01:29:45 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-11-13 01:29:45 +0000 |
| commit | 8413d0d2da505fe4e23d99b77383b780e27b68c3 (patch) | |
| tree | 603f11e67c74f6d397b6beb56fb991626223e296 | |
| parent | 5596fbf1d9c8ab25cabc54c405be5ef03fc1c087 (diff) | |
| download | emacs-8413d0d2da505fe4e23d99b77383b780e27b68c3.tar.gz emacs-8413d0d2da505fe4e23d99b77383b780e27b68c3.zip | |
(mouse-drag-copy-region): Add :version.
(mouse-drag-mode-line-1): Let bind mouse-autoselect-window to nil
while dragging mode line, so mode line can be dragged downwards.
(mouse-drag-region-1): Let bind make-cursor-line-fully-visible
while pressing mouse button so window doesn't scroll until we
release the mouse if clicking on partially visible line.
| -rw-r--r-- | lisp/mouse.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 865b5e96297..912048cd1de 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; mouse.el --- window system-independent mouse support | 1 | ;;; mouse.el --- window system-independent mouse support |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 94, 95, 1999, 2000, 01, 2004 | 3 | ;; Copyright (C) 1993, 94, 95, 1999, 2000, 2001, 2002, 2003, 2004 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -46,6 +46,7 @@ | |||
| 46 | (defcustom mouse-drag-copy-region t | 46 | (defcustom mouse-drag-copy-region t |
| 47 | "*If non-nil, mouse drag copies region to kill-ring." | 47 | "*If non-nil, mouse drag copies region to kill-ring." |
| 48 | :type 'boolean | 48 | :type 'boolean |
| 49 | :version "21.4" | ||
| 49 | :group 'mouse) | 50 | :group 'mouse) |
| 50 | 51 | ||
| 51 | 52 | ||
| @@ -363,6 +364,7 @@ MODE-LINE-P non-nil means dragging a mode line; nil means a header line." | |||
| 363 | (start-nwindows (count-windows t)) | 364 | (start-nwindows (count-windows t)) |
| 364 | (old-selected-window (selected-window)) | 365 | (old-selected-window (selected-window)) |
| 365 | (minibuffer (frame-parameter nil 'minibuffer)) | 366 | (minibuffer (frame-parameter nil 'minibuffer)) |
| 367 | (mouse-autoselect-window nil) | ||
| 366 | should-enlarge-minibuffer event mouse y top bot edges wconfig growth) | 368 | should-enlarge-minibuffer event mouse y top bot edges wconfig growth) |
| 367 | (track-mouse | 369 | (track-mouse |
| 368 | (progn | 370 | (progn |
| @@ -741,6 +743,7 @@ If the click is in the echo area, display the `*Messages*' buffer." | |||
| 741 | (start-frame (window-frame start-window)) | 743 | (start-frame (window-frame start-window)) |
| 742 | (start-hscroll (window-hscroll start-window)) | 744 | (start-hscroll (window-hscroll start-window)) |
| 743 | (bounds (window-edges start-window)) | 745 | (bounds (window-edges start-window)) |
| 746 | (make-cursor-line-fully-visible nil) | ||
| 744 | (top (nth 1 bounds)) | 747 | (top (nth 1 bounds)) |
| 745 | (bottom (if (window-minibuffer-p start-window) | 748 | (bottom (if (window-minibuffer-p start-window) |
| 746 | (nth 3 bounds) | 749 | (nth 3 bounds) |