[Top][All Lists]

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

tooltip-mode disabled prevents messages in minibuffer

From: Drew Adams
Subject: tooltip-mode disabled prevents messages in minibuffer
Date: Sun, 25 Jun 2006 09:07:36 -0700

Evaluate this:

 (require 'easymenu)
 (defvar my-menu (copy-tree facemenu-menu) "")
 (defalias 'my-menu my-menu)
 (define-key global-map [C-down-mouse-2] 'my-menu)
 (easy-menu-do-add-item my-menu ["TEST" test t])
 (defun test () "" (interactive) (message "TTTTTTTTTTTTTTTTT"))
 (tooltip-mode 1)

Use `C-mouse-2' to bring up the facemenu and then click TEST. The
message TTTTTTTTTTTT appears in the minibuffer, as it should.

Now, do this: (tooltip-mode -1)

Try menu item TEST again: no message appears in the minibuffer. The
message TTTTTTTTTT appears in *Messages*, however.

I don't know if an empty tooltip message in the minibuffer is somehow
overwriting the message or what. If that is the problem, how can I
control that?  I tried binding tooltip-mode to 1 around the call to
`message', but that didn't help.

In GNU Emacs (i386-mingw-nt5.1.2600)
 of 2006-03-20 on W2ONE
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Id:/g/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  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: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t

Recent input:
n u <tab> <return> <help-echo> <help-echo> <help-echo> 
<switch-frame> <down-mouse-1> <mouse-movement> <mouse-1> 
<down-mouse-2> <mouse-2> <return> <return> <down-mouse-1> 
<mouse-movement> <mouse-1> <down-mouse-2> <mouse-2> 
<down-mouse-1> <mouse-1> C-x C-s M-x e v a l - b u 
f f e r <return> <down-mouse-1> <mouse-1> <down-mouse-1> 
<mouse-1> <return> <return> <down-mouse-1> <mouse-1> 
( r e q u i r e SPC ' e a s y m e n u ) C-e C-x C-e 
<down-mouse-1> <mouse-1> M-x e v a l - b u <return> 
<C-down-mouse-2> <TEST> <down-mouse-1> <mouse-1> <backspace> 
C-e C-x C-e <C-down-mouse-2> <TEST> <down-mouse-1> 
<mouse-1> <backspace> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 

Recent messages:
Loading dired...done
(New file)
Mark set [2 times]
Wrote c:/drews-lisp-20/foo.el
eval-buffer: Symbol's function definition is void: easy-menu-do-add-item
Loading emacsbug...done

reply via email to

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