unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Bug with key echo.
Date: Tue, 01 Feb 2005 16:45:52 +0100	[thread overview]
Message-ID: <x5mzuothan.fsf@lola.goethe.zz> (raw)
In-Reply-To: <E1Cvy70-0005lJ-GL@fencepost.gnu.org> (Richard Stallman's message of "Tue, 01 Feb 2005 08:30:34 -0500")

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

  reply	other threads:[~2005-02-01 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2005-02-03  6:39     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x5mzuothan.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).