From unknown Wed Sep 24 03:27:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15332 <15332@debbugs.gnu.org> To: bug#15332 <15332@debbugs.gnu.org> Subject: Status: Keystrokes's immediate echo only works every other time Reply-To: bug#15332 <15332@debbugs.gnu.org> Date: Wed, 24 Sep 2025 10:27:54 +0000 retitle 15332 Keystrokes's immediate echo only works every other time reassign 15332 emacs submitter 15332 Stefan Monnier severity 15332 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 10 22:27:13 2013 Received: (at submit) by debbugs.gnu.org; 11 Sep 2013 02:27:13 +0000 Received: from localhost ([127.0.0.1]:53896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJa9A-0006H7-Ia for submit@debbugs.gnu.org; Tue, 10 Sep 2013 22:27:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42742) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJa98-0006Gt-9o for submit@debbugs.gnu.org; Tue, 10 Sep 2013 22:27:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJa8t-0002fk-Lf for submit@debbugs.gnu.org; Tue, 10 Sep 2013 22:27:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJa8t-0002fg-Iz for submit@debbugs.gnu.org; Tue, 10 Sep 2013 22:26:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJa8m-0006PZ-8R for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 22:26:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJa8e-0002cw-W6 for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 22:26:48 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:26480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJa8e-0002cq-MD for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 22:26:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqERABK/CFG4rxBo/2dsb2JhbABErF0BikSGaQEDAQN7F3OCe18TIQEcDYhIoAuRFJAOjWGDKQOkeoFegxM X-IPAS-Result: AqERABK/CFG4rxBo/2dsb2JhbABErF0BikSGaQEDAQN7F3OCe18TIQEcDYhIoAuRFJAOjWGDKQOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="27221951" Received: from 184-175-16-104.dsl.teksavvy.com (HELO ceviche.home) ([184.175.16.104]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 10 Sep 2013 22:23:14 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 11504660E6; Tue, 10 Sep 2013 22:26:33 -0400 (EDT) From: Stefan Monnier To: bug-gnu-emacs@gnu.org Subject: Keystrokes's immediate echo only works every other time Date: Tue, 10 Sep 2013 22:26:33 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Package: Emacs Version: 24.3.50 If you do: C-u 5 5 5 5 ... You'll see keystrokes echo as follows: C-u- (correct) C-u 5 (instead of "C-u 5-") C-u 5 5- (only appears after you wait echo-keystrokes seconds) C-u 5 5 5 (instead of "C-u 5 5 5-") C-u 5 5 5 5- (only appears after you wait echo-keystrokes seconds) ... This worked correctly in 22.3 but is broken at least since 23.4. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 10 22:41:50 2013 Received: (at 15332-done) by debbugs.gnu.org; 11 Sep 2013 02:41:50 +0000 Received: from localhost ([127.0.0.1]:53909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJaNJ-0006gt-G5 for submit@debbugs.gnu.org; Tue, 10 Sep 2013 22:41:49 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:14789) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJaNH-0006gY-28 for 15332-done@debbugs.gnu.org; Tue, 10 Sep 2013 22:41:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFG4rxBo/2dsb2JhbABEuzWDWRdzgh4BAQQBVigLCzQSFBgNiEIGsR+QDo1hgykDpHqBXoMT X-IPAS-Result: Av8EABK/CFG4rxBo/2dsb2JhbABEuzWDWRdzgh4BAQQBVigLCzQSFBgNiEIGsR+QDo1hgykDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="27222860" Received: from 184-175-16-104.dsl.teksavvy.com (HELO ceviche.home) ([184.175.16.104]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 10 Sep 2013 22:38:15 -0400 Received: by ceviche.home (Postfix, from userid 20848) id B6719660FB; Tue, 10 Sep 2013 22:41:37 -0400 (EDT) From: Stefan Monnier To: 15332-done@debbugs.gnu.org Subject: Re: bug#15332: Keystrokes's immediate echo only works every other time Message-ID: References: Date: Tue, 10 Sep 2013 22:41:37 -0400 In-Reply-To: (Stefan Monnier's message of "Tue, 10 Sep 2013 22:26:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 15332-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > You'll see keystrokes echo as follows: > C-u- (correct) > C-u 5 (instead of "C-u 5-") > C-u 5 5- (only appears after you wait echo-keystrokes seconds) > C-u 5 5 5 (instead of "C-u 5 5 5-") > C-u 5 5 5 5- (only appears after you wait echo-keystrokes seconds) > ... > This worked correctly in 22.3 but is broken at least since 23.4. The patch below appears to fix it. Stefan === modified file 'src/keyboard.c' --- src/keyboard.c 2013-09-09 12:15:45 +0000 +++ src/keyboard.c 2013-09-11 02:27:54 +0000 @@ -2596,9 +2596,7 @@ if (/* There currently is something in the echo area. */ !NILP (echo_area_buffer[0]) - && (/* And it's either not from echoing. */ - !EQ (echo_area_buffer[0], echo_message_buffer) - /* Or it's an echo from a different kboard. */ + && (/* It's an echo from a different kboard. */ || echo_kboard != current_kboard /* Or we explicitly allow overwriting whatever there is. */ || ok_to_echo_at_next_pause == NULL)) From unknown Wed Sep 24 03:27:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 09 Oct 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator