From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: trunk read-key-sequence bug Date: Sun, 20 Jan 2008 01:14:47 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1200809771 13922 80.91.229.12 (20 Jan 2008 06:16:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2008 06:16:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 20 07:16:29 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JGTTp-0006Z4-8V for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2008 07:16:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGTTP-0002CM-S3 for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2008 01:16:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGTSG-0001Bj-MF for emacs-devel@gnu.org; Sun, 20 Jan 2008 01:14:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGTSD-00019o-VJ for emacs-devel@gnu.org; Sun, 20 Jan 2008 01:14:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGTSD-00019N-3q for emacs-devel@gnu.org; Sun, 20 Jan 2008 01:14:49 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JGTSC-0005HD-UO for emacs-devel@gnu.org; Sun, 20 Jan 2008 01:14:49 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JGTSB-0004Oj-Lp; Sun, 20 Jan 2008 01:14:47 -0500 In-reply-to: (message from Katsumi Yamaoka on Thu, 17 Jan 2008 16:05:53 +0900) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87101 Archived-At: I think this fixes the bug. Does it give good results in general? *** keyboard.c 04 Jan 2008 00:28:05 -0500 1.936 --- keyboard.c 19 Jan 2008 14:13:04 -0500 *************** *** 2715,2720 **** --- 2715,2722 ---- /* if redisplay was requested */ if (commandflag >= 0) { + int echo_current = echo_message_buffer == echo_area_buffer[0]; + /* If there is pending input, process any events which are not user-visible, such as X selection_request events. */ if (input_pending *************** *** 2738,2743 **** --- 2740,2749 ---- swallow_events (0); /* If that cleared input_pending, try again to redisplay. */ } + + if (commandflag == 0 && echo_current) + echo_message_buffer = echo_area_buffer[0]; + } /* Message turns off echoing unless more keystrokes turn it on again.