comparison lisp/mouse.el @ 90260:0ca0d9181b5e

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-95 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 598-615) - Update from CVS - Remove lisp/toolbar directory - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 142-146) - Update from CVS
author Miles Bader <miles@gnu.org>
date Mon, 16 Jan 2006 06:59:21 +0000
parents 5e2d3828e89f c80a3a047c83
children 7beb78bc1f8e
comparison
equal deleted inserted replaced
90259:a3ba65547f84 90260:0ca0d9181b5e
52 (defcustom mouse-1-click-follows-link 450 52 (defcustom mouse-1-click-follows-link 450
53 "Non-nil means that clicking Mouse-1 on a link follows the link. 53 "Non-nil means that clicking Mouse-1 on a link follows the link.
54 54
55 With the default setting, an ordinary Mouse-1 click on a link 55 With the default setting, an ordinary Mouse-1 click on a link
56 performs the same action as Mouse-2 on that link, while a longer 56 performs the same action as Mouse-2 on that link, while a longer
57 Mouse-1 click \(hold down the Mouse-1 button for more than 350 57 Mouse-1 click \(hold down the Mouse-1 button for more than 450
58 milliseconds) performs the original Mouse-1 binding \(which 58 milliseconds) performs the original Mouse-1 binding \(which
59 typically sets point where you click the mouse). 59 typically sets point where you click the mouse).
60 60
61 If value is an integer, the time elapsed between pressing and 61 If value is an integer, the time elapsed between pressing and
62 releasing the mouse button determines whether to follow the link 62 releasing the mouse button determines whether to follow the link
76 clickable text as links, so it may not work with some external 76 clickable text as links, so it may not work with some external
77 packages. See `mouse-on-link-p' for details." 77 packages. See `mouse-on-link-p' for details."
78 :version "22.1" 78 :version "22.1"
79 :type '(choice (const :tag "Disabled" nil) 79 :type '(choice (const :tag "Disabled" nil)
80 (const :tag "Double click" double) 80 (const :tag "Double click" double)
81 (number :tag "Single click time limit" :value 350) 81 (number :tag "Single click time limit" :value 450)
82 (other :tag "Single click" t)) 82 (other :tag "Single click" t))
83 :group 'mouse) 83 :group 'mouse)
84 84
85 (defcustom mouse-1-click-in-non-selected-windows t 85 (defcustom mouse-1-click-in-non-selected-windows t
86 "*If non-nil, a Mouse-1 click also follows links in non-selected windows. 86 "*If non-nil, a Mouse-1 click also follows links in non-selected windows.
661 (if (numberp (posn-point posn)) 661 (if (numberp (posn-point posn))
662 (goto-char (posn-point posn))) 662 (goto-char (posn-point posn)))
663 ;; If mark is highlighted, no need to bounce the cursor. 663 ;; If mark is highlighted, no need to bounce the cursor.
664 ;; On X, we highlight while dragging, thus once again no need to bounce. 664 ;; On X, we highlight while dragging, thus once again no need to bounce.
665 (or transient-mark-mode 665 (or transient-mark-mode
666 (memq (framep (selected-frame)) '(x pc w32)) 666 (memq (framep (selected-frame)) '(x pc w32 mac))
667 (sit-for 1)) 667 (sit-for 1))
668 (push-mark) 668 (push-mark)
669 (set-mark (point)) 669 (set-mark (point))
670 (if (numberp (posn-point end)) 670 (if (numberp (posn-point end))
671 (goto-char (posn-point end))) 671 (goto-char (posn-point end)))