[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug to fix!
From: |
Chong Yidong |
Subject: |
Re: Bug to fix! |
Date: |
Tue, 09 May 2006 10:31:22 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> Examining shell-mode-map shows that the repeated commands do appear
> bound to the same keys twice via list sharing. You can see this for
> yourself by evaluating the following in *scratch*:
>
> (let ((print-circle t) (print-length nil)
> (standard-output (current-buffer)))
> (prin1 shell-mode-map))
>
> This is normal--it is part of the keymap parent mechanism.
> shell-mode-map has comint-mode-map as its parent.
> So the sub-keymap for C-c in shell-mode-map must also have,
> as its parent, the sub-keymap for C-c in comint-mode-map.
>
> So the right fix here is to change the code that generates
> the table for C-h m so that it avoids generating duplicate
> output in cases like this.
>
> Would someone like to do that?
I think this patch fixes it.
*** emacs/src/keymap.c~ 2006-05-09 10:23:03.000000000 -0400
--- emacs/src/keymap.c 2006-05-09 10:28:59.000000000 -0400
***************
*** 3297,3303 ****
tem = shadow_lookup (shadow, kludge, Qt);
if (!NILP (tem))
{
! if (mention_shadow)
this_shadowed = 1;
else
continue;
--- 3297,3303 ----
tem = shadow_lookup (shadow, kludge, Qt);
if (!NILP (tem))
{
! if (mention_shadow && !EQ (tem, definition))
this_shadowed = 1;
else
continue;
- Bug to fix!, Richard Stallman, 2006/05/08
- Re: Bug to fix!,
Chong Yidong <=