unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6765: 24.0.50; Tooltip over mode-line has strange content.
@ 2010-07-30 15:26 Jan Djärv
  2010-08-01  6:28 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Djärv @ 2010-07-30 15:26 UTC (permalink / raw)
  To: 6765

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug.  If you can, give
a recipe starting from `emacs -Q':

I can't from Emacs -Q, but -q:

% 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".  This only happens
for this case.  Swiching to another buffer and back, and the text is now
correct.
Do this in another buffer does not show this error.
I also reproduced this in GNU/Linux.

    Jan D.



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
     `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Users/jhd/bin/Emacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 24.0.50.2 (x86_64-apple-darwin10.4.0, NS apple-appkit-1038.32)
  of 2010-07-20 on zeplin
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--verbose' '--enable-asserts' '--with-ns' 
'--without-x' 'CFLAGS=-g''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: C
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: sv_SE.UTF-8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
   tooltip-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
<help-echo> <escape> x r e p o r t - e m <tab> <re
turn>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr message rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug
tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6765: 24.0.50; Tooltip over mode-line has strange content.
  2010-07-30 15:26 bug#6765: 24.0.50; Tooltip over mode-line has strange content Jan Djärv
@ 2010-08-01  6:28 ` YAMAMOTO Mitsuharu
  2010-08-01  8:53   ` Jan Djärv
  2010-08-01 16:52   ` Juanma Barranquero
  0 siblings, 2 replies; 4+ messages in thread
From: YAMAMOTO Mitsuharu @ 2010-08-01  6:28 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 6765

>>>>> On Fri, 30 Jul 2010 17:26:36 +0200, Jan Djärv <jan.h.d@swipnet.se> 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
				mituharu@math.s.chiba-u.ac.jp

=== 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)








^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6765: 24.0.50; Tooltip over mode-line has strange content.
  2010-08-01  6:28 ` YAMAMOTO Mitsuharu
@ 2010-08-01  8:53   ` Jan Djärv
  2010-08-01 16:52   ` Juanma Barranquero
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Djärv @ 2010-08-01  8:53 UTC (permalink / raw)
  To: YAMAMOTO Mitsuharu; +Cc: 6765

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<jan.h.d@swipnet.se>  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
> 				mituharu@math.s.chiba-u.ac.jp
>
> === 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)
>
>





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6765: 24.0.50; Tooltip over mode-line has strange content.
  2010-08-01  6:28 ` YAMAMOTO Mitsuharu
  2010-08-01  8:53   ` Jan Djärv
@ 2010-08-01 16:52   ` Juanma Barranquero
  1 sibling, 0 replies; 4+ messages in thread
From: Juanma Barranquero @ 2010-08-01 16:52 UTC (permalink / raw)
  To: YAMAMOTO Mitsuharu; +Cc: 6765-done

On Sun, Aug 1, 2010 at 08:28, YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp> wrote:

> !              (string-match "\\`mouse-2" msg))

I've committed your fix with a slight change (and a ChangeLog entry).

Thanks,

    Juanma





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-01 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30 15:26 bug#6765: 24.0.50; Tooltip over mode-line has strange content Jan Djärv
2010-08-01  6:28 ` YAMAMOTO Mitsuharu
2010-08-01  8:53   ` Jan Djärv
2010-08-01 16:52   ` Juanma Barranquero

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).