diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mouse.el | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index aebe6b5951e..6a7c7c7ed09 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-08-08 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * mouse.el (mouse-drag-track): Remove accidentally-removed check | ||
| 4 | for `double' value of mouse-1-click-follows-link (Bug#6807). | ||
| 5 | |||
| 1 | 2010-08-08 Johan Bockgård <bojohan@gnu.org> | 6 | 2010-08-08 Johan Bockgård <bojohan@gnu.org> |
| 2 | 7 | ||
| 3 | * replace.el (replace-highlight): Bind isearch-forward and | 8 | * replace.el (replace-highlight): Bind isearch-forward and |
diff --git a/lisp/mouse.el b/lisp/mouse.el index a0491b0e5fb..3bc3fcefa80 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -929,6 +929,9 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by | |||
| 929 | ;; intangible text. | 929 | ;; intangible text. |
| 930 | (mouse-on-link-p start-posn))) | 930 | (mouse-on-link-p start-posn))) |
| 931 | (click-count (1- (event-click-count start-event))) | 931 | (click-count (1- (event-click-count start-event))) |
| 932 | (remap-double-click (and on-link | ||
| 933 | (eq mouse-1-click-follows-link 'double) | ||
| 934 | (= click-count 1))) | ||
| 932 | ;; Suppress automatic hscrolling, because that is a nuisance | 935 | ;; Suppress automatic hscrolling, because that is a nuisance |
| 933 | ;; when setting point near the right fringe (but see below). | 936 | ;; when setting point near the right fringe (but see below). |
| 934 | (automatic-hscrolling-saved automatic-hscrolling) | 937 | (automatic-hscrolling-saved automatic-hscrolling) |
| @@ -941,6 +944,8 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by | |||
| 941 | (if (< (point) start-point) | 944 | (if (< (point) start-point) |
| 942 | (goto-char start-point)) | 945 | (goto-char start-point)) |
| 943 | (setq start-point (point)) | 946 | (setq start-point (point)) |
| 947 | (if remap-double-click | ||
| 948 | (setq click-count 0)) | ||
| 944 | 949 | ||
| 945 | ;; Activate the region, using `mouse-start-end' to determine where | 950 | ;; Activate the region, using `mouse-start-end' to determine where |
| 946 | ;; to put point and mark (e.g., double-click will select a word). | 951 | ;; to put point and mark (e.g., double-click will select a word). |