unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Strange behaviour of track-mouse and make-local-variable
Date: Mon, 27 May 2002 16:56:56 -0600 (MDT)	[thread overview]
Message-ID: <200205272256.g4RMuuF08902@aztec.santafe.edu> (raw)
In-Reply-To: <877klqsw04.fsf@myrkr.in-berlin.de> (message from Torsten Hilbrich on Sun, 26 May 2002 18:40:27 +0200)

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'."

  reply	other threads:[~2002-05-27 22:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-26 16:40 Strange behaviour of track-mouse and make-local-variable Torsten Hilbrich
2002-05-27 22:56 ` Richard Stallman [this message]
2002-05-30 19:21   ` Torsten Hilbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200205272256.g4RMuuF08902@aztec.santafe.edu \
    --to=rms@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).