From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: Strange behaviour of track-mouse and make-local-variable Date: Mon, 27 May 2002 16:56:56 -0600 (MDT) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200205272256.g4RMuuF08902@aztec.santafe.edu> References: <877klqsw04.fsf@myrkr.in-berlin.de> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1022540229 27088 127.0.0.1 (27 May 2002 22:57:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 May 2002 22:57:09 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17CTQL-00072n-00 for ; Tue, 28 May 2002 00:57:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17CTQz-0000mh-00; Mon, 27 May 2002 18:57:49 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17CTQ9-0000cw-00; Mon, 27 May 2002 18:56:58 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g4RMuuK25648; Mon, 27 May 2002 16:56:56 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g4RMuuF08902; Mon, 27 May 2002 16:56:56 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: email@myrkr.in-berlin.de In-Reply-To: <877klqsw04.fsf@myrkr.in-berlin.de> (message from Torsten Hilbrich on Sun, 26 May 2002 18:40:27 +0200) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1630 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1630 Does this change fix it? *** tooltip.el.~1.23.~ Sun May 12 12:43:49 2002 --- tooltip.el Mon May 27 16:11:40 2002 *************** *** 299,314 **** (tooltip-activate-mouse-motions nil)) (setq buffers (cdr buffers)))))) (defun tooltip-activate-mouse-motions (activatep) "Activate/deactivate mouse motion events for the current buffer. ACTIVATEP non-nil means activate mouse motion events." (if activatep (progn (make-local-variable 'track-mouse) (setq track-mouse t)) ! (kill-local-variable 'track-mouse))) ! (defun tooltip-mouse-motion (event) "Command handler for mouse movement events in `global-map'." --- 299,319 ---- (tooltip-activate-mouse-motions nil)) (setq buffers (cdr buffers)))))) + (defvar tooltip-mouse-motions-active nil + "Locally t in a buffer if tooltip processing of mouse motion is enabled.") (defun tooltip-activate-mouse-motions (activatep) "Activate/deactivate mouse motion events for the current buffer. ACTIVATEP non-nil means activate mouse motion events." (if activatep (progn + (make-local-variable 'tooltip-mouse-motions-active) + (setq tooltip-mouse-motions-active t) (make-local-variable 'track-mouse) (setq track-mouse t)) ! (when tooltip-mouse-motions-active ! (kill-local-variable 'tooltip-mouse-motions-active) ! (kill-local-variable 'track-mouse)))) (defun tooltip-mouse-motion (event) "Command handler for mouse movement events in `global-map'."