From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arni Magnusson Newsgroups: gmane.emacs.bugs Subject: bug#6035: M-x gdb crashes Date: Tue, 6 Jul 2010 00:27:25 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: dough.gmane.org 1278376195 8400 80.91.229.12 (6 Jul 2010 00:29:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 00:29:55 +0000 (UTC) To: 6035@debbugs.gnu.org, Dmitry Dzhus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 06 02:29:54 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OVw2s-0006jc-0t for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Jul 2010 02:29:54 +0200 Original-Received: from localhost ([127.0.0.1]:37568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVw2r-00073m-HQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jul 2010 20:29:53 -0400 Original-Received: from [140.186.70.92] (port=44890 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVw2l-00073a-RI for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2010 20:29:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVw2k-0008St-Jh for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2010 20:29:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55803) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVw2k-0008So-IH for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2010 20:29:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OVw13-00009t-S6; Mon, 05 Jul 2010 20:28:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Arni Magnusson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jul 2010 00:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6035 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6035-submit@debbugs.gnu.org id=B6035.1278376057598 (code B ref 6035); Tue, 06 Jul 2010 00:28:01 +0000 Original-Received: (at 6035) by debbugs.gnu.org; 6 Jul 2010 00:27:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVw0e-00009b-L9 for submit@debbugs.gnu.org; Mon, 05 Jul 2010 20:27:36 -0400 Original-Received: from hafgarpur.hafro.is ([130.208.64.48]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVw0b-00009V-NH for 6035@debbugs.gnu.org; Mon, 05 Jul 2010 20:27:35 -0400 X-Virus-Scanned: amavisd-new at hafro.is Original-Received: from hafstormur.hafro.is (hafstormur [130.208.66.52]) by hafgarpur.hafro.is (8.14.2/8.14.2/hafro-2.46) with ESMTP id o660RQaY000709; Tue, 6 Jul 2010 00:27:27 GMT Original-Received: from hafstormur.hafro.is (localhost [127.0.0.1]) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-1.6) with ESMTP id o660RQw0023431; Tue, 6 Jul 2010 00:27:26 GMT Original-Received: from localhost (arnima@localhost) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-0.3) with ESMTP id o660RPHK023426; Tue, 6 Jul 2010 00:27:26 GMT X-Authentication-Warning: hafstormur.hafro.is: arnima owned process doing -bs User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 05 Jul 2010 20:28:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38250 Archived-At: Thank you Dmitry, for the feedback. As a maintainer of two major modes, I'm familiar with the keybinding conventions that you mention. My interpretation of the conventions is that Emacs developers should try to use C-c C-char when providing keybindings for their modes. Emacs users, on the other hand, are not restricted when binding any keystroke to any command. This is what makes Emacs such an efficient working environment: users customize all keybindings to their liking, and everything just work. The worst thing that can happen is that a command is not available with the keystroke that the developer intended, but the command is still available as M-x foo, and can also be bound to whatever keystroke the user finds practical. In my experience, all modes load and work fine, regardless of the keybindings in my .emacs file. The only exception is `gdb' and C-x C-a. The Emacs Manual demonstrates how users can rebind keystrokes like C-x l, overriding the default binding of that keystroke. I can find no warning against redefining C-x C-char, such as C-x C-a. The default Emacs keybindings are suggestions, not set in stone. I realize gud-mode is big, and that it provides keybindings beyond the standard C-c C-char range that most modes use. But I hope that its robustness can be improved, providing C-x C-a rather than depending on it, so that it loads and runs even if users have redefined the C-x C-a key in their .emacs file. Cheers, Arni On Mon, 26 Apr 2010, Dmitry Dzhus wrote: > Arni Magnusson wrote: > >> When there is no .emacs file, M-x gdb works fine. >> >> When the .emacs file defines a keybinding for C-x C-a, for example, >> >> (global-set-key [?\C-x ?\C-a] 'align) >> >> then M-x gdb crashes with the following error message: >> >> Key sequence C-x C-a C-l starts with non-prefix key C-x C-a > > > C-x C-a is GUD prefix. gdb-mi.el is based on GUD, so it uses its > keybindings too. > >> The Emacs documentation indicates that users are allowed to bind C-x C- >> keystrokes to functions that they use in their work. > > Which section of Emacs manual says that? > > `C-c LETTER` keyspace is reserved for users' needs, as stated in section > D.2 Key binding conventions of Emacs Lisp manual. > > You can type C-x C-h and see that pretty much of C-x C- keychords are > already occupied by default global bindings. > > -- > > Happy Hacking. >