From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: keyboard.c "version 1.724": Echo area handling is wrong after C-u Date: Sun, 9 Feb 2003 12:41:10 +0000 (GMT) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1044794647 10559 80.91.224.249 (9 Feb 2003 12:44:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Feb 2003 12:44:07 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hqoX-0002kA-00 for ; Sun, 09 Feb 2003 13:44:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hqog-0001U4-01 for gnu-bug-gnu-emacs@m.gmane.org; Sun, 09 Feb 2003 07:44:14 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18hqo2-0001K4-00 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2003 07:43:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18hqnj-00018A-00 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2003 07:43:16 -0500 Original-Received: from acm.muc.de ([193.149.49.134] helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hqlI-0008LP-00 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2003 07:40:45 -0500 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id MAA00425 for ; Sun, 9 Feb 2003 12:41:11 GMT X-Sender: root@acm.acm Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4421 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4421 Emacs 21.1 with a patched keyboard.c. Linux tty. My keyboard.c is that delivered with Emacs 21.1, patched with the diffs between the 1.723 and 1.724 CVS versions. [Apologies if the following bug doesn't exist in an up-to-date Emacs 21.3 snapshot. My slow modem connection makes it difficult for me to check this out]. ************************************************** Note: On a Linux tty, [esc ?[ ?C] is the sequence of events produced by pressing the right-arrow key, and is converted to 'right by the function-key-kap. 1: Type C-u and wait till it appears in the echo area. 2: Type . "C-u ESC-" now appears in the echo area. 3: Type "[". "C-u ESC [-" momentarily flickers in the echo area. The two last characters are instantly removed, leaving "C-u-". THIS SHOULD NOT HAPPEN. 4: Type "C" "C-u right" now (correctly) appears in the echo area, and point has been (correctly) advanced by four characters. ************************************************** 1: Bind [esc ?[ ?9] to some command, e.g. 'previous-line. This key-sequence doesn't exist in function-key-map. 2: Repeat steps 1 to 4 above, except "9" rather than "C" should by typed. The echo area is left with the wront contents "C-u 9", rather than the correct "C-u ESC [ 9". The command, together with the prefix argument, is correctly executed. ************************************************** 1: Type M-3 and wait. "ESC 3" appears in the echo area. 2: Type M-C-a. "ESC 3 ESC C-a" flickers briefly in the echo area. The echo area is then instantly truncated to "ESC 3". THIS SHOULD NOT HAPPEN. Point is correctly moved back by three defuns. The echo area continues to show (wrongly) "ESC 3" until the next keypress. ************************************************** Cc's of subsequent emails would be appreciated. Many thanks in advance. -- Alan Mackenzie (Munich, Germany) acm@muc.de