unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Edward O'Connor" <ted@oconnor.cx>
Subject: nil
Date: Fri, 29 Mar 2002 23:38:22 -0500	[thread overview]
Message-ID: <200203300438.g2U4cMr13620@george.floobin.cx> (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

             reply	other threads:[~2002-03-30  4:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-30  4:38 Edward O'Connor [this message]
2002-03-31 16:40 ` nil Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200203300438.g2U4cMr13620@george.floobin.cx \
    --to=ted@oconnor.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).