unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug with key echo.
@ 2005-01-26  0:48 David Kastrup
  2005-02-01 13:30 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2005-01-26  0:48 UTC (permalink / raw)



Execute the following two commands.

(define-key ctl-x-map "\C-p" nil)
(define-key ctl-x-map "\C-p\C-p" (lambda nil (interactive) (y-or-n-p "Woozle ")))

Now type C-x C-p and wait until the key echo appears.  Then type C-p
again.

Instead of a display of
Woozle (y or n)
in the echo area, you get
C-x C-p C-p-
which makes it somewhat hard to guess at the question.  This bug has
been plagueing me for years, but I have not been able to come up with
a working test case for it.

It seems to be a combination of intermediate map and multiple key
stroke following that is involved here.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with key echo.
  2005-01-26  0:48 Bug with key echo David Kastrup
@ 2005-02-01 13:30 ` Richard Stallman
  2005-02-01 15:45   ` David Kastrup
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2005-02-01 13:30 UTC (permalink / raw)
  Cc: emacs-devel

    Execute the following two commands.

    (define-key ctl-x-map "\C-p" nil)
    (define-key ctl-x-map "\C-p\C-p" (lambda nil (interactive) (y-or-n-p "Woozle ")))

    Now type C-x C-p and wait until the key echo appears.  Then type C-p
    again.

Does this fix it?

*** xdisp.c	29 Jan 2005 11:51:48 -0500	1.974
--- xdisp.c	01 Feb 2005 05:44:57 -0500	
***************
*** 8085,8090 ****
--- 8085,8091 ----
  
    /* Last displayed message is now the current message.  */
    echo_area_buffer[1] = echo_area_buffer[0];
+   echo_message_buffer = Qnil;
  
    /* Prevent redisplay optimization in redisplay_internal by resetting
       this_line_start_pos.  This is done because the mini-buffer now

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with key echo.
  2005-02-01 13:30 ` Richard Stallman
@ 2005-02-01 15:45   ` David Kastrup
  2005-02-03  6:39     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2005-02-01 15:45 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

>     Execute the following two commands.
>
>     (define-key ctl-x-map "\C-p" nil)
>     (define-key ctl-x-map "\C-p\C-p" (lambda nil (interactive) (y-or-n-p "Woozle ")))
>
>     Now type C-x C-p and wait until the key echo appears.  Then type C-p
>     again.
>
> Does this fix it?
>
> *** xdisp.c	29 Jan 2005 11:51:48 -0500	1.974
> --- xdisp.c	01 Feb 2005 05:44:57 -0500	
> ***************
> *** 8085,8090 ****
> --- 8085,8091 ----
>   
>     /* Last displayed message is now the current message.  */
>     echo_area_buffer[1] = echo_area_buffer[0];
> +   echo_message_buffer = Qnil;
>   
>     /* Prevent redisplay optimization in redisplay_internal by resetting
>        this_line_start_pos.  This is done because the mini-buffer now

It appears to do so for the real-world case from which I distilled the
above bug recipe.  I have not tested thoroughly for side effects,
though.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with key echo.
  2005-02-01 15:45   ` David Kastrup
@ 2005-02-03  6:39     ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2005-02-03  6:39 UTC (permalink / raw)
  Cc: emacs-devel

    It appears to do so for the real-world case from which I distilled the
    above bug recipe.  I have not tested thoroughly for side effects,
    though.

Please test as much as is practical in the next couple of days.
If you don't find a problem in that time, I'll install the change.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-03  6:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26  0:48 Bug with key echo David Kastrup
2005-02-01 13:30 ` Richard Stallman
2005-02-01 15:45   ` David Kastrup
2005-02-03  6:39     ` Richard Stallman

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