Subject: Re: bug#6765: 24.0.50; Tooltip over mode-line has strange content.

From: Jan Djärv <[email-masked]>
Date: Sun, 01 Aug 2010 10:53:27 +0200

That fixes it.  Strange that it doesn't fail everytime, but only the first time.

	Jan D.

YAMAMOTO Mitsuharu skrev 2010-08-01 08.28:
>>>>>> On Fri, 30 Jul 2010 17:26:36 +0200, Jan Djärv<[email-masked]>  said:
>
>> % emacs -q
>> Move mouse to (Fundamental) in the mode-line.  A tooltip pops up:
>
>> "mouse-1ode
>> mouse-1: Display major mode menu
>> mouse-2: Show help for major mode
>> mouse-3: Toggle minor modes'
>> "
>
>> The first line is strange, should be "Major mode".
>
> mouse-fixup-help-message in mouse.el seems to have clobbered it.
>
> 				     YAMAMOTO Mitsuharu
> 				[email-masked]
>
> === modified file 'lisp/mouse.el'
> *** lisp/mouse.el	2010-01-13 08:35:10 +0000
> --- lisp/mouse.el	2010-08-01 06:11:31 +0000
> ***************
> *** 887,893 ****
>        (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)))
>    	     (car pos) (>= (car pos) 0)
> --- 887,893 ----
>        (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)))
>    	     (car pos) (>= (car pos) 0)
>
>