From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23204: 25.1.50; Strange behaviour of =?UTF-8?Q?=E2=80=98read-char=E2=80=99?= Date: Thu, 03 Feb 2022 21:47:45 +0100 Message-ID: <87pmo3llse.fsf@gnus.org> References: <87wpofx9ry.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19214"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 23204@debbugs.gnu.org To: Mark Karpov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 03 22:27:04 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFjd9-0004jI-C3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 22:27:03 +0100 Original-Received: from localhost ([::1]:35722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFjd8-0006AE-Fg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 16:27:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFj1P-00070e-Sv for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 15:48:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFj1P-0007JU-Io for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 15:48:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFj1O-0002Rp-HV for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 15:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Feb 2022 20:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23204 X-GNU-PR-Package: emacs Original-Received: via spool by 23204-submit@debbugs.gnu.org id=B23204.16439212789374 (code B ref 23204); Thu, 03 Feb 2022 20:48:02 +0000 Original-Received: (at 23204) by debbugs.gnu.org; 3 Feb 2022 20:47:58 +0000 Original-Received: from localhost ([127.0.0.1]:58022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj1J-0002R8-Ov for submit@debbugs.gnu.org; Thu, 03 Feb 2022 15:47:57 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj1H-0002QG-7t for 23204@debbugs.gnu.org; Thu, 03 Feb 2022 15:47:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dQYV+vPeW4PC7GHeiPA9nKWAFeyhNnokwKQfzEewQes=; b=N8wUu0YwT1VQGkDNUuA68Rd4bt pkBy9R1ko7B1s9eQcuRSUPJAQvWXajDCSZvOw8pW0d6l2X4KyPUifLOpe5vkJtB3/V7Ts0E9MIsWA JpN/GtIH8wEclh/In+MgOMBg6dJZoE2QExlZi0VVLne2BCaatIOVRoTscrW+YBNPxWW4=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFj18-0004N6-E6; Thu, 03 Feb 2022 21:47:49 +0100 X-Now-Playing: He Said's _Take Care_: "Could You? (Too)" In-Reply-To: <87wpofx9ry.fsf@openmailbox.org> (Mark Karpov's message of "Sun, 03 Apr 2016 16:32:33 +0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225927 Archived-At: Mark Karpov writes: > I'm not sure if it's sort of feature (rather undocumented) or a bug. > Let's say I have a command that uses =E2=80=98read-char=E2=80=99 repeated= ly, and it's > given a custom prompt as the first argument, like this: > > (defun my-command () > (interactive) > (while (read-char "My prompt=E2=80=A6" t))) > > Now if you call this from lisp or like this: =E2=80=98M-x my-command RET= =E2=80=99, > everything is fine: you see the prompt and you can type some chars > (press =E2=80=98C-g=E2=80=99 to get out of this). > > But if you bind the command to key sequence, like this: > > (global-set-key (kbd " t y") #'my-command) > > Then you have a nasty problem when you actually call it. Try to call it > and then type some characters =E2=80=94 you will see no prompt and they w= ill > accumulate in echo area indefinitely: > > menu t y h e r e SPC I SPC t y p e SPC t h i n g s SPC a n d SPC i t > SPC i s SPC g e t t i n g SPC r a t h e r SPC l o n g (I'm going through old bug reports that unfortunately weren't resolved at the time.) I can reproduce this problem in Emacs 25.1, but not on the current master, so it looks like it's been fixed in the years since this was first reported, and I'm therefore closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no