# HG changeset patch # User Nick Roberts # Date 1151967949 0 # Node ID 1152b12a089e020dae9b84a40cea7a7b2537cfc9 # Parent faad62bfa89860ee6fdfb855a959841070367d8f tooltip.el: Move comment about track-mouse... progmodes/gud.el: ...to here. diff -r faad62bfa898 -r 1152b12a089e lisp/progmodes/gud.el --- a/lisp/progmodes/gud.el Mon Jul 03 19:45:26 2006 +0000 +++ b/lisp/progmodes/gud.el Mon Jul 03 23:05:49 2006 +0000 @@ -3366,6 +3366,12 @@ (defvar gud-tooltip-mouse-motions-active nil "Locally t in a buffer if tooltip processing of mouse motion is enabled.") +;; We don't set track-mouse globally because this is a big redisplay +;; problem in buffers having a pre-command-hook or such installed, +;; which does a set-buffer, like the summary buffer of Gnus. Calling +;; set-buffer prevents redisplay optimizations, so every mouse motion +;; would be accompanied by a full redisplay. + (defun gud-tooltip-activate-mouse-motions (activatep) "Activate/deactivate mouse motion events for the current buffer. ACTIVATEP non-nil means activate mouse motion events." diff -r faad62bfa898 -r 1152b12a089e lisp/tooltip.el --- a/lisp/tooltip.el Mon Jul 03 19:45:26 2006 +0000 +++ b/lisp/tooltip.el Mon Jul 03 23:05:49 2006 +0000 @@ -40,12 +40,6 @@ ;;; Switching tooltips on/off -;; We don't set track-mouse globally because this is a big redisplay -;; problem in buffers having a pre-command-hook or such installed, -;; which does a set-buffer, like the summary buffer of Gnus. Calling -;; set-buffer prevents redisplay optimizations, so every mouse motion -;; would be accompanied by a full redisplay. - (define-minor-mode tooltip-mode "Toggle Tooltip mode. With ARG, turn Tooltip mode on if and only if ARG is positive.