unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* nil
@ 2002-03-30  4:38 Edward O'Connor
  2002-03-31 16:40 ` nil Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Edward O'Connor @ 2002-03-30  4:38 UTC (permalink / raw)


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

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

* Re: nil
  2002-03-30  4:38 nil Edward O'Connor
@ 2002-03-31 16:40 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2002-03-31 16:40 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    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.

It would be a reasonable idea.  For now, I will change the menu item
string since that is quick.  If someone wants to do this more powerful
feature, we can install that instead.

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

end of thread, other threads:[~2002-03-31 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-30  4:38 nil Edward O'Connor
2002-03-31 16:40 ` nil Richard Stallman

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