emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/tooltip.el


From: Kim F . Storm
Subject: [Emacs-diffs] Changes to emacs/lisp/tooltip.el
Date: Fri, 17 Dec 2004 10:35:31 -0500

Index: emacs/lisp/tooltip.el
diff -c emacs/lisp/tooltip.el:1.38 emacs/lisp/tooltip.el:1.39
*** emacs/lisp/tooltip.el:1.38  Thu Nov 25 02:55:37 2004
--- emacs/lisp/tooltip.el       Fri Dec 17 15:16:33 2004
***************
*** 1,6 ****
  ;;; tooltip.el --- show tooltip windows
  
! ;; Copyright (C) 1997, 1999, 2000, 2001, 2004  Free Software Foundation, Inc.
  
  ;; Author: Gerd Moellmann <address@hidden>
  ;; Keywords: help c mouse tools
--- 1,7 ----
  ;;; tooltip.el --- show tooltip windows
  
! ;; Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004
! ;;        Free Software Foundation, Inc.
  
  ;; Author: Gerd Moellmann <address@hidden>
  ;; Keywords: help c mouse tools
***************
*** 476,482 ****
  (defun tooltip-show-help-function (msg)
    "Function installed as `show-help-function'.
  MSG is either a help string to display, or nil to cancel the display."
!   (let ((previous-help tooltip-help-message))
      (setq tooltip-help-message msg)
      (cond ((null msg)
           ;; Cancel display.  This also cancels a delayed tip, if
--- 477,501 ----
  (defun tooltip-show-help-function (msg)
    "Function installed as `show-help-function'.
  MSG is either a help string to display, or nil to cancel the display."
!   (let ((previous-help tooltip-help-message)
!       mp pos)
!     (if (and mouse-1-click-follows-link
!            (stringp msg)
!            (save-match-data
!              (string-match "^mouse-2" msg))
!            (setq mp (mouse-pixel-position))
!            (consp (setq pos (cdr mp)))
!            (setq pos (posn-at-x-y (car pos) (cdr pos) (car mp)))
!            (windowp (posn-window pos)))
!       (with-current-buffer (window-buffer (posn-window pos))
!         (if (mouse-on-link-p (posn-point pos))
!             (setq msg (concat
!                   (cond
!                    ((eq mouse-1-click-follows-link 'double) "double-")
!                    ((and (integerp mouse-1-click-follows-link)
!                          (< mouse-1-click-follows-link 0)) "Long ")
!                    (t ""))
!                   "mouse-1" (substring msg 7))))))
      (setq tooltip-help-message msg)
      (cond ((null msg)
           ;; Cancel display.  This also cancels a delayed tip, if




reply via email to

[Prev in Thread] Current Thread [Next in Thread]