From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Edward O'Connor" Newsgroups: gmane.emacs.bugs Subject: nil Date: Fri, 29 Mar 2002 23:38:22 -0500 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200203300438.g2U4cMr13620@george.floobin.cx> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1017463169 23340 127.0.0.1 (30 Mar 2002 04:39:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 30 Mar 2002 04:39:29 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16rAeG-00064L-00 for ; Sat, 30 Mar 2002 05:39:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16rAeD-0002pw-00; Fri, 29 Mar 2002 23:39:25 -0500 Original-Received: from george.floobin.cx ([206.246.132.16]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16rAbs-0002cG-00 for ; Fri, 29 Mar 2002 23:37:00 -0500 Original-Received: (from ted@localhost) by george.floobin.cx (8.11.3/8.11.3) id g2U4cMr13620; Fri, 29 Mar 2002 23:38:22 -0500 Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:301 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:301 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 ] | runs the command gdb | which is an interactive compiled Lisp function in `gud'. | It is bound to . | (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