GNU bug report logs - #6035
gud-key-prefix

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Arni Magnusson <arnima@HIDDEN>; dated Mon, 26 Apr 2010 01:38:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 6035 <at> debbugs.gnu.org:


Received: (at 6035) by debbugs.gnu.org; 6 Jul 2010 09:33:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 06 05:33:25 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OW4Wr-0004nJ-F7
	for submit <at> debbugs.gnu.org; Tue, 06 Jul 2010 05:33:25 -0400
Received: from mail-iw0-f172.google.com ([209.85.214.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1OW4Wq-0004nD-5K
	for 6035 <at> debbugs.gnu.org; Tue, 06 Jul 2010 05:33:24 -0400
Received: by iwn38 with SMTP id 38so712601iwn.3
	for <6035 <at> debbugs.gnu.org>; Tue, 06 Jul 2010 02:33:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:mime-version:received:in-reply-to
	:references:from:date:message-id:subject:to:cc:content-type
	:content-transfer-encoding;
	bh=97BuzKeMr1xKThWLeb1oq2JZF2mQ40zOMP0Kxil/USI=;
	b=AOCgXG62qsOf3v6gqZkXKUlF0ZRk92cp8O3oNr7FlN4dfb8H3YgaM782SxVvp4BP4l
	x+UZCA5cqktjLyY+8++b8DC+s37yQFYfYdO7QFN1HGvk8y61SXdfGfRpmsHrz2tFjlrn
	yJxR1HuR7XVJu32PYf0245ZYnuwQXzyLR8cQI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	b=YiyCp07xKUtY3Gu3KZjS3cLLkmVyRVDNs62NZL4Lrwebgt4ThZZL1gwqIVUkWhkqwT
	dyq99WMcm/CIoVgPgse7MQcGGCN0sWWJVIcjnWx/NbzoQ5pdMXowvkMddi8VD9oT9M2Y
	EkpXDxBP0by9u9xjMWwVrWiuH4thrlp/25Q/U=
Received: by 10.42.9.83 with SMTP id l19mr1349662icl.35.1278408801154; Tue, 06 
	Jul 2010 02:33:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.170.83 with HTTP; Tue, 6 Jul 2010 02:32:59 -0700 (PDT)
In-Reply-To: <alpine.LFD.2.00.1007060828250.25194@HIDDEN>
References: <alpine.LFD.2.00.1004252212210.19779@HIDDEN> 
	<alpine.LFD.2.00.1007052106480.22620@HIDDEN> 
	<AANLkTikkLLO_M45PvSdRFNx2laNm45DvWV82ff5P9A0W@HIDDEN> 
	<alpine.LFD.2.00.1007060828250.25194@HIDDEN>
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Tue, 6 Jul 2010 11:32:59 +0200
Message-ID: <AANLkTinnElV4joUX8yPW11_tm9fGbpAdwKenUYo9-VIN@HIDDEN>
Subject: Re: bug#6035: M-x gdb crashes
To: Arni Magnusson <arnima@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 6035
Cc: 6035 <at> debbugs.gnu.org, Dmitry Dzhus <dima@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.9 (--)

Ah, my bad, C-x C-char, I thought it was C-c C-char you were looking at.

C-c C-char is reserved for major modes only and should not be used by
minor modes AFAICS.

Yes, the manual says nothing about C-x. In my opinion it should, but
others disagreed in a recent discussion.

And yes, M-x gdb could use a global minor mode for the C-x C-a binding
to avoid the problem:

(define-key global-map "\C-x\C-a" (lambda () (interactive) (message
"C-x C-a here!!")))

(defvar my-test-mode-map
  (let ((map (make-sparse-keymap)))
    (define-key map "\C-x\C-a\C-l" (lambda () (interactive) (message
"C-x C-a C-l there!!")))
    (define-key map "\C-l" (lambda () (interactive) (message "C-l also!!"))=
)
    map))

(define-minor-mode my-test-mode "Testing key binding"
  :global t
  )



On Tue, Jul 6, 2010 at 10:47 AM, Arni Magnusson <arnima@HIDDEN> wrote:
> C-c C-char: reserved for major and minor modes (source: elisp manual)
>
> C-x C-char: free game for anyone, potential tug-of-wars between users and
> modes, but no should pose no danger of crashing a mode (source: my
> interpretation and experience)
>
> Given the nature of Emacs, some tug-of-war of keybindings can be expected=
.
> Many of my mode hooks, for example, rebind M-n and M-p to what I like the=
m
> to do, overriding what the mode author thought I might like. This is
> harmless, and has not crashed any mode. The elisp manual (23.2.2) allows
> major modes to use these and other keystrokes, but I'm sure many Emacs us=
ers
> have bound them to generic functions they find useful in all modes.
>
> We sound like lawyers here, but all I'm asking is whether it's easy to
> prevent M-x gdb from crashing if C-x C-a is bound. If it's not easy, then=
 so
> be it; the current error message accurately describes the quirk.
>
> Cheers,
>
> Arni
>
>
>
> On Tue, 6 Jul 2010, Lennart Borgman wrote:
>
>> On Tue, Jul 6, 2010 at 2:27 AM, Arni Magnusson <arnima@HIDDEN> wrote:
>>>
>>> I can find no warning
>>> against redefining C-x C-char, such as C-x C-a.
>>
>> The elisp manual chapter mentioned before here
>>
>> =C2=A0(info "(elisp) Key Binding Conventions")
>>
>> says that
>>
>> =C2=A0* Sequences consisting of `C-c' followed by a control character or=
 a
>> =C2=A0 =C2=A0digit are reserved for major modes.
>>
>> So it looks to me like GUD does follow that rule.
>>
>> Maybe the error message could include a link to that part of the elisp
>> manual, but that would rather be a general thing in Emacs, not
>> specific to GUD.
>>
>




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6035; Package emacs. Full text available.

Message received at 6035 <at> debbugs.gnu.org:


Received: (at 6035) by debbugs.gnu.org; 6 Jul 2010 08:47:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 06 04:47:30 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OW3oP-0004Tx-O1
	for submit <at> debbugs.gnu.org; Tue, 06 Jul 2010 04:47:30 -0400
Received: from hafgarpur.hafro.is ([130.208.64.48])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <arnima@HIDDEN>) id 1OW3oN-0004Tq-Gi
	for 6035 <at> debbugs.gnu.org; Tue, 06 Jul 2010 04:47:28 -0400
X-Virus-Scanned: amavisd-new at hafro.is
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
	o668lLol007144; Tue, 6 Jul 2010 08:47:21 GMT
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
	o668lL9g025266; Tue, 6 Jul 2010 08:47:21 GMT
Received: from localhost (arnima@localhost)
	by hafstormur.hafro.is (8.14.3/8.14.3/hafro-0.3) with ESMTP id
	o668lKK2025261; Tue, 6 Jul 2010 08:47:20 GMT
X-Authentication-Warning: hafstormur.hafro.is: arnima owned process doing -bs
Date: Tue, 6 Jul 2010 08:47:20 +0000 (GMT)
From: Arni Magnusson <arnima@HIDDEN>
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: Re: bug#6035: M-x gdb crashes
In-Reply-To: <AANLkTikkLLO_M45PvSdRFNx2laNm45DvWV82ff5P9A0W@HIDDEN>
Message-ID: <alpine.LFD.2.00.1007060828250.25194@HIDDEN>
References: <alpine.LFD.2.00.1004252212210.19779@HIDDEN>
	<alpine.LFD.2.00.1007052106480.22620@HIDDEN>
	<AANLkTikkLLO_M45PvSdRFNx2laNm45DvWV82ff5P9A0W@HIDDEN>
User-Agent: Alpine 2.00 (LFD 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 6035
Cc: 6035 <at> debbugs.gnu.org, Dmitry Dzhus <dima@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.4 (---)

C-c C-char: reserved for major and minor modes (source: elisp manual)

C-x C-char: free game for anyone, potential tug-of-wars between users and 
modes, but no should pose no danger of crashing a mode (source: my 
interpretation and experience)

Given the nature of Emacs, some tug-of-war of keybindings can be expected. 
Many of my mode hooks, for example, rebind M-n and M-p to what I like them 
to do, overriding what the mode author thought I might like. This is 
harmless, and has not crashed any mode. The elisp manual (23.2.2) allows 
major modes to use these and other keystrokes, but I'm sure many Emacs 
users have bound them to generic functions they find useful in all modes.

We sound like lawyers here, but all I'm asking is whether it's easy to 
prevent M-x gdb from crashing if C-x C-a is bound. If it's not easy, then 
so be it; the current error message accurately describes the quirk.

Cheers,

Arni



On Tue, 6 Jul 2010, Lennart Borgman wrote:

> On Tue, Jul 6, 2010 at 2:27 AM, Arni Magnusson <arnima@HIDDEN> wrote:
>>
>> I can find no warning
>> against redefining C-x C-char, such as C-x C-a.
>
> The elisp manual chapter mentioned before here
>
>   (info "(elisp) Key Binding Conventions")
>
> says that
>
>   * Sequences consisting of `C-c' followed by a control character or a
>     digit are reserved for major modes.
>
> So it looks to me like GUD does follow that rule.
>
> Maybe the error message could include a link to that part of the elisp
> manual, but that would rather be a general thing in Emacs, not
> specific to GUD.
>




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6035; Package emacs. Full text available.

Message received at 6035 <at> debbugs.gnu.org:


Received: (at 6035) by debbugs.gnu.org; 6 Jul 2010 01:07:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 05 21:07:24 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OVwdA-0000Y2-J6
	for submit <at> debbugs.gnu.org; Mon, 05 Jul 2010 21:07:24 -0400
Received: from mail-ew0-f44.google.com ([209.85.215.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1OVwd8-0000Xu-PR
	for 6035 <at> debbugs.gnu.org; Mon, 05 Jul 2010 21:07:23 -0400
Received: by ewy22 with SMTP id 22so1681994ewy.3
	for <6035 <at> debbugs.gnu.org>; Mon, 05 Jul 2010 18:07:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:mime-version:received:in-reply-to
	:references:from:date:message-id:subject:to:cc:content-type;
	bh=hXW9Exaaowjx2qWNSd1HyxMWkpKVdhMxoGcOJkDctxI=;
	b=t9PIxCj7D9cJ3LJcmb+Kw0ExAP7aUCEsrjE7Hstb+nDVP2/z8WLEmptPUr/Jl8bxAw
	iUL+mYZSkF8fc839nDYsvRn7Z+cQ5dWc+N2ghDB7Zl8y6yTpbj7hBgd74v5qpAN0gqq/
	axBL3eJ8UtU9oRpIwc2AgXZaFZZ28G2h9ojvk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	b=Tn+c3IyWk+Fy+759tTpq9tkJshfVjeRcGz+g8sef1CV/derT7PImpQuR+nq/ItKARP
	tCPgqXvgbsiGI5WEc/CMgw1tl41vJeRwfH8XDt4wrk9gLTa57j/NMWSoOcdwidwX6cVy
	kaDsktMcBYK0AOuBhi/nMb9NRcTK2Md9tKahw=
Received: by 10.213.2.204 with SMTP id 12mr3164449ebk.4.1278378438507; Mon, 05 
	Jul 2010 18:07:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.213.15.132 with HTTP; Mon, 5 Jul 2010 18:06:58 -0700 (PDT)
In-Reply-To: <alpine.LFD.2.00.1007052106480.22620@HIDDEN>
References: <alpine.LFD.2.00.1004252212210.19779@HIDDEN> 
	<alpine.LFD.2.00.1007052106480.22620@HIDDEN>
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Tue, 6 Jul 2010 03:06:58 +0200
Message-ID: <AANLkTikkLLO_M45PvSdRFNx2laNm45DvWV82ff5P9A0W@HIDDEN>
Subject: Re: bug#6035: M-x gdb crashes
To: Arni Magnusson <arnima@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 6035
Cc: 6035 <at> debbugs.gnu.org, Dmitry Dzhus <dima@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.9 (--)

On Tue, Jul 6, 2010 at 2:27 AM, Arni Magnusson <arnima@HIDDEN> wrote:
>
> I can find no warning
> against redefining C-x C-char, such as C-x C-a.

The elisp manual chapter mentioned before here

   (info "(elisp) Key Binding Conventions")

says that

   * Sequences consisting of `C-c' followed by a control character or a
     digit are reserved for major modes.

So it looks to me like GUD does follow that rule.

Maybe the error message could include a link to that part of the elisp
manual, but that would rather be a general thing in Emacs, not
specific to GUD.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6035; Package emacs. Full text available.

Message received at 6035 <at> debbugs.gnu.org:


Received: (at 6035) by debbugs.gnu.org; 6 Jul 2010 00:27:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 05 20:27:37 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OVw0e-00009b-L9
	for submit <at> debbugs.gnu.org; Mon, 05 Jul 2010 20:27:36 -0400
Received: from hafgarpur.hafro.is ([130.208.64.48])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <arnima@HIDDEN>) id 1OVw0b-00009V-NH
	for 6035 <at> debbugs.gnu.org; Mon, 05 Jul 2010 20:27:35 -0400
X-Virus-Scanned: amavisd-new at hafro.is
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
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
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
Date: Tue, 6 Jul 2010 00:27:25 +0000 (UTC)
From: Arni Magnusson <arnima@HIDDEN>
To: 6035 <at> debbugs.gnu.org, Dmitry Dzhus <dima@HIDDEN>
Subject: Re: M-x gdb crashes
Message-ID: <alpine.LFD.2.00.1007052106480.22620@HIDDEN>
User-Agent: Alpine 2.00 (LFD 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-Spam-Score: -3.0 (---)
X-Debbugs-Envelope-To: 6035
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.7 (---)

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




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6035; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Apr 2010 18:58:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 26 14:58:04 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1O6TVL-0002b1-Rw
	for submit <at> debbugs.gnu.org; Mon, 26 Apr 2010 14:58:04 -0400
Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1O6TTw-0002Zp-U9
	for submit <at> debbugs.gnu.org; Mon, 26 Apr 2010 14:56:38 -0400
Received: from lists.gnu.org ([199.232.76.165]:47295)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1O6TTs-0007Lm-41
	for submit <at> debbugs.gnu.org; Mon, 26 Apr 2010 14:56:32 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1O6TTr-0000uq-AN
	for bug-gnu-emacs@HIDDEN; Mon, 26 Apr 2010 14:56:31 -0400
Received: from [140.186.70.92] (port=55606 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1O6TTn-0000qu-VR
	for bug-gnu-emacs@HIDDEN; Mon, 26 Apr 2010 14:56:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.0
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1O6TTh-0000Fo-NX
	for bug-gnu-emacs@HIDDEN; Mon, 26 Apr 2010 14:56:27 -0400
Received: from lo.gmane.org ([80.91.229.12]:59120)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1O6TTh-0000FW-HS
	for bug-gnu-emacs@HIDDEN; Mon, 26 Apr 2010 14:56:21 -0400
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1O6TTd-00016d-38
	for bug-gnu-emacs@HIDDEN; Mon, 26 Apr 2010 20:56:17 +0200
Received: from 93-80-94-4.broadband.corbina.ru ([93.80.94.4])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Apr 2010 20:56:17 +0200
Received: from dima by 93-80-94-4.broadband.corbina.ru with local (Gmexim 0.1
	(Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Apr 2010 20:56:17 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
connect(): No such file or directory
From: Dmitry Dzhus <dima@HIDDEN>
Subject: Re: bug#6035: M-x gdb crashes
Date: Mon, 26 Apr 2010 22:54:48 +0400
Lines: 31
Message-ID: <87k4ru6o3r.fsf@HIDDEN>
References: <alpine.LFD.2.00.1004252212210.19779@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: 93-80-94-4.broadband.corbina.ru
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
Cancel-Lock: sha1:Pr/hw7WlC4KHqjjxthv+GnrgjW8=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 26 Apr 2010 14:58:02 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

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.

http://sphinx.net.ru
む






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6035; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Apr 2010 01:37:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 25 21:37:57 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1O6DGm-00020I-O7
	for submit <at> debbugs.gnu.org; Sun, 25 Apr 2010 21:37:56 -0400
Received: from mx10.gnu.org ([199.232.76.166])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <arnima@HIDDEN>) id 1O6DGk-00020A-U5
	for submit <at> debbugs.gnu.org; Sun, 25 Apr 2010 21:37:55 -0400
Received: from lists.gnu.org ([199.232.76.165]:52514)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <arnima@HIDDEN>) id 1O6DGh-00014R-4S
	for submit <at> debbugs.gnu.org; Sun, 25 Apr 2010 21:37:51 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1O6DGg-0002Dn-Qk
	for bug-gnu-emacs@HIDDEN; Sun, 25 Apr 2010 21:37:50 -0400
Received: from [140.186.70.92] (port=48418 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1O6DGe-0002CV-EM
	for bug-gnu-emacs@HIDDEN; Sun, 25 Apr 2010 21:37:50 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.0
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <arnima@HIDDEN>) id 1O6DGc-0005j3-Tq
	for bug-gnu-emacs@HIDDEN; Sun, 25 Apr 2010 21:37:47 -0400
Received: from hafgarpur.hafro.is ([130.208.64.48]:48804)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <arnima@HIDDEN>) id 1O6DGc-0005if-FL
	for bug-gnu-emacs@HIDDEN; Sun, 25 Apr 2010 21:37:46 -0400
X-Virus-Scanned: amavisd-new at hafro.is
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
	o3Q1bapM022803
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Apr 2010 01:37:37 GMT
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
	o3Q1ba4R020647
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Apr 2010 01:37:36 GMT
Received: from localhost (arnima@localhost)
	by hafstormur.hafro.is (8.14.3/8.14.3/hafro-0.3) with ESMTP id
	o3Q1bZBY020642
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Apr 2010 01:37:36 GMT
X-Authentication-Warning: hafstormur.hafro.is: arnima owned process doing -bs
Date: Mon, 26 Apr 2010 01:37:35 +0000 (GMT)
From: Arni Magnusson <arnima@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: M-x gdb crashes
Message-ID: <alpine.LFD.2.00.1004252212210.19779@HIDDEN>
User-Agent: Alpine 2.00 (LFD 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

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

The Emacs documentation indicates that users are allowed to bind C-x C- 
keystrokes to functions that they use in their work. Most likely, M-x gdb 
can be implemented so that it doesn't crash with the above example.

Arni





Acknowledgement sent to Arni Magnusson <arnima@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6035; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.