bug-gnu-emacs
[Top][All Lists]
Advanced

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

nil


From: Edward O'Connor
Subject: nil
Date: Fri, 29 Mar 2002 23:38:22 -0500

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers 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.

In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-17 on george
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: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Hi there!

Under the Tools menu, there's an item called "Debugger (GUD)...".
It's bound to the command `gdb':

,----[ C-h k <menu-bar> <tools> <gdb> ]
| <menu-bar> <tools> <gdb> runs the command gdb
|    which is an interactive compiled Lisp function in `gud'.
| It is bound to <menu-bar> <tools> <gdb>.
| (gdb COMMAND-LINE)
| 
| Run gdb on program FILE in buffer *gud-FILE*.
| The directory containing FILE becomes the initial working directory
| and source-file directory for your debugger.
| 
| [back]
`----

But the name of the menu item says GUD, not GDB, and so I assumed
that it would Do The Right Thing when I selected this menu item while
editing some Perl code (namely, I assumed that this menu item would
somehow call `perldb', given the kind of code I was editing at the
time).

Certainly one way to fix this bug would be to simply change the menu
item string to "Debugger (GDB)...", but it seems like it should be
straightforward enough to instead have some kind of `gud-dwim' on this
menu item.

Perhaps this menu item should invoke a command which funcalls the
value of some buffer-local variable which the major mode should
initialize? For example, cperl-mode could set, say, gud-command-name
to perldb, and java-mode could set it to jdb. Etc.

This could be really really cool. :) Thanks for all the wonderful
work on Emacs.


-- 
Edward O'Connor
ted@oconnor.cx



reply via email to

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