unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work
@ 2009-04-30 14:04 ` Richard Driscoll
  2009-05-02 11:32   ` Nick Roberts
  2009-11-16 20:00   ` bug#3173: marked as done (Enabling gud-tooltip-mode in .emacs doesn't work) Emacs bug Tracking System
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Driscoll @ 2009-04-30 14:04 UTC (permalink / raw)
  To: bug-gnu-emacs

To: bug-gnu-emacs@gnu.org
Subject: Enabling gud-tooltip-mode in .emacs doesn't work
--text follows this line--

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:

================
(This is pasted from Emacs into thunderbird since I don't have Emacs set 
up to send mail).

When running gdb under Emacs, M-x gud-tooltip-mode works fine with
tooltips appearing as the mouse is moved over variables.

With the following in the .emacs file:-


(custom-set-variables
   ;; custom-set-variables was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(gud-tooltip-mode t)
  '(inhibit-startup-screen t))

.....Emacs and gdb are then started but nothing happens when the mouse 
is moved over variables.

Doing M-x gud-tooltip-mode results in a message that tooltips are now
disabled implying that they were previously enabled and also that the
.emacs file was read correctly.

Doing M-x gud-tooltip-mode produces a mesasage that tooltips are
again enabled and this time the tooltips do appear with the mouse over
variables.

So it looks as if the .emacs file "half works" in that it enables the
mode but not the tooltips!

(I didn't turn off the startup file since it is part of the bug).

If there's anything else I can do to help please ask.

Richard Driscoll

=================

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'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/22.2/etc/DEBUG for instructions.


In GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
  of 2008-09-05 on vernadsky, modified by Ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
configured using `configure  '--build=i486-linux-gnu' 
'--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' 
'--libexecdir=/usr/lib' '--localstatedir=/var' 
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' 
'--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' 
'--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 
'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g 
-Wl,--as-needed' 'CPPFLAGS=''

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: en_GB.UTF-8
   locale-coding-system: utf-8
   default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
   which-function-mode: t
   show-paren-mode: t
   tooltip-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
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el 
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el 
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading paren...done
Loading which-func...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done







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

* bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work
  2009-04-30 14:04 ` bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work Richard Driscoll
@ 2009-05-02 11:32   ` Nick Roberts
  2009-05-02 12:07     ` Lennart Borgman
  2009-11-16 20:00   ` bug#3173: marked as done (Enabling gud-tooltip-mode in .emacs doesn't work) Emacs bug Tracking System
  1 sibling, 1 reply; 5+ messages in thread
From: Nick Roberts @ 2009-05-02 11:32 UTC (permalink / raw)
  To: Richard Driscoll, 3173; +Cc: bug-gnu-emacs

 > When running gdb under Emacs, M-x gud-tooltip-mode works fine with
 > tooltips appearing as the mouse is moved over variables.
 > 
 > With the following in the .emacs file:-
 > 
 > 
 > (custom-set-variables
 >    ;; custom-set-variables was added by Custom.
 >    ;; If you edit it by hand, you could mess it up, so be careful.
 >    ;; Your init file should contain only one such instance.
 >    ;; If there is more than one, they won't work right.
 >   '(gud-tooltip-mode t)
 >   '(inhibit-startup-screen t))
 > 
 > .....Emacs and gdb are then started but nothing happens when the mouse 
 > is moved over variables.

It looks like setting a variable defined through define-minor-mode to t in
customize doesn't run the body code when that minor mode is loaded.  I
don't know if that's a bug in customize or if gud-tooltip-mode shouldn't
be defined as a minor mode.

-- 
Nick                                           http://www.inet.net.nz/~nickrob






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

* bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work
  2009-05-02 11:32   ` Nick Roberts
@ 2009-05-02 12:07     ` Lennart Borgman
  2009-05-02 22:49       ` Nick Roberts
  0 siblings, 1 reply; 5+ messages in thread
From: Lennart Borgman @ 2009-05-02 12:07 UTC (permalink / raw)
  To: Nick Roberts, 3173; +Cc: Richard Driscoll

On Sat, May 2, 2009 at 1:32 PM, Nick Roberts <nickrob@snap.net.nz> wrote:
>  > When running gdb under Emacs, M-x gud-tooltip-mode works fine with
>  > tooltips appearing as the mouse is moved over variables.
>  >
>  > With the following in the .emacs file:-
>  >
>  >
>  > (custom-set-variables
>  >    ;; custom-set-variables was added by Custom.
>  >    ;; If you edit it by hand, you could mess it up, so be careful.
>  >    ;; Your init file should contain only one such instance.
>  >    ;; If there is more than one, they won't work right.
>  >   '(gud-tooltip-mode t)
>  >   '(inhibit-startup-screen t))
>  >
>  > .....Emacs and gdb are then started but nothing happens when the mouse
>  > is moved over variables.
>
> It looks like setting a variable defined through define-minor-mode to t in
> customize doesn't run the body code when that minor mode is loaded.  I
> don't know if that's a bug in customize or if gud-tooltip-mode shouldn't
> be defined as a minor mode.

It might be related to the same problem for define-minor-mode used in
libraries not included in Emacs. (I have long ago submitted a patch
for this and I believe I still have this in EmacsW32.)

Could it be that this happen because gud-tooltip-mode is not autoloaded?






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

* bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work
  2009-05-02 12:07     ` Lennart Borgman
@ 2009-05-02 22:49       ` Nick Roberts
  0 siblings, 0 replies; 5+ messages in thread
From: Nick Roberts @ 2009-05-02 22:49 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 3173, Richard Driscoll

 > Could it be that this happen because gud-tooltip-mode is not autoloaded?

You're right.  Autoloading gud-tooltip-mode fixes the problem.  I've not
committed this change yet as it never worked in Emacs 22, so it's not a fix to
a regression as specified by Yidong.

-- 
Nick                                           http://www.inet.net.nz/~nickrob






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

* bug#3173: marked as done (Enabling gud-tooltip-mode in .emacs doesn't work)
  2009-04-30 14:04 ` bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work Richard Driscoll
  2009-05-02 11:32   ` Nick Roberts
@ 2009-11-16 20:00   ` Emacs bug Tracking System
  1 sibling, 0 replies; 5+ messages in thread
From: Emacs bug Tracking System @ 2009-11-16 20:00 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 895 bytes --]

Your message dated Mon, 16 Nov 2009 13:03:23 -0500
with message-id <keinyjqj8.fsf@fencepost.gnu.org>
and subject line Re: Bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work
has caused the Emacs bug report #3173,
regarding Enabling gud-tooltip-mode in .emacs doesn't work
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
3173: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3173
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 6565 bytes --]

From: Richard Driscoll <rjd99@rjdriscoll.plus.com>
To: bug-gnu-emacs@gnu.org
Subject: Enabling gud-tooltip-mode in .emacs doesn't work
Date: Thu, 30 Apr 2009 15:04:05 +0100
Message-ID: <49F9AFD5.4000002@rjdriscoll.plus.com>

To: bug-gnu-emacs@gnu.org
Subject: Enabling gud-tooltip-mode in .emacs doesn't work
--text follows this line--

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:

================
(This is pasted from Emacs into thunderbird since I don't have Emacs set 
up to send mail).

When running gdb under Emacs, M-x gud-tooltip-mode works fine with
tooltips appearing as the mouse is moved over variables.

With the following in the .emacs file:-


(custom-set-variables
   ;; custom-set-variables was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(gud-tooltip-mode t)
  '(inhibit-startup-screen t))

.....Emacs and gdb are then started but nothing happens when the mouse 
is moved over variables.

Doing M-x gud-tooltip-mode results in a message that tooltips are now
disabled implying that they were previously enabled and also that the
.emacs file was read correctly.

Doing M-x gud-tooltip-mode produces a mesasage that tooltips are
again enabled and this time the tooltips do appear with the mouse over
variables.

So it looks as if the .emacs file "half works" in that it enables the
mode but not the tooltips!

(I didn't turn off the startup file since it is part of the bug).

If there's anything else I can do to help please ask.

Richard Driscoll

=================

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'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/22.2/etc/DEBUG for instructions.


In GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
  of 2008-09-05 on vernadsky, modified by Ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
configured using `configure  '--build=i486-linux-gnu' 
'--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' 
'--libexecdir=/usr/lib' '--localstatedir=/var' 
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' 
'--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' 
'--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 
'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g 
-Wl,--as-needed' 'CPPFLAGS=''

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: en_GB.UTF-8
   locale-coding-system: utf-8
   default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
   which-function-mode: t
   show-paren-mode: t
   tooltip-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
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el 
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el 
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading paren...done
Loading which-func...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done




[-- Attachment #3: Type: message/rfc822, Size: 1441 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: 3173-done@emacsbugs.donarmstrong.com
Subject: Re: Bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work
Date: Mon, 16 Nov 2009 13:03:23 -0500
Message-ID: <keinyjqj8.fsf@fencepost.gnu.org>


gud-tooltip-mode autoloaded since Jun 21, 2009.


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

end of thread, other threads:[~2009-11-16 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <keinyjqj8.fsf@fencepost.gnu.org>
2009-04-30 14:04 ` bug#3173: Enabling gud-tooltip-mode in .emacs doesn't work Richard Driscoll
2009-05-02 11:32   ` Nick Roberts
2009-05-02 12:07     ` Lennart Borgman
2009-05-02 22:49       ` Nick Roberts
2009-11-16 20:00   ` bug#3173: marked as done (Enabling gud-tooltip-mode in .emacs doesn't work) Emacs bug Tracking System

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