From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#38785: 26.3; `y-or-n-p' leaves prompt and response in echo area Date: Sun, 29 Dec 2019 06:14:40 -0800 (PST) Message-ID: <9f59791d-d4b5-4d41-b6e1-0a8428681c68@default> References: <<787722a4-9679-4160-903d-d9de42801ddf@default>> <<5561aae8-fa46-4228-833a-912fc49d789e@default>> <<87blrrwlsf.fsf@hase.home>> <<83blrrns4o.fsf@gnu.org>> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="159375"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38785@debbugs.gnu.org To: Eli Zaretskii , Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 29 15:15:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ilZLb-000fK3-9r for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Dec 2019 15:15:11 +0100 Original-Received: from localhost ([::1]:52410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilZLZ-0002dH-Ok for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Dec 2019 09:15:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52663) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilZLT-0002d6-N1 for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 09:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilZLS-00008O-Nd for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 09:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53415) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilZLS-00007l-Js for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 09:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ilZLS-0004v3-F9 for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 09:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Dec 2019 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38785 X-GNU-PR-Package: emacs Original-Received: via spool by 38785-submit@debbugs.gnu.org id=B38785.157762889118881 (code B ref 38785); Sun, 29 Dec 2019 14:15:02 +0000 Original-Received: (at 38785) by debbugs.gnu.org; 29 Dec 2019 14:14:51 +0000 Original-Received: from localhost ([127.0.0.1]:59388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilZLH-0004uT-G4 for submit@debbugs.gnu.org; Sun, 29 Dec 2019 09:14:51 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:54988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilZLF-0004uF-AE for 38785@debbugs.gnu.org; Sun, 29 Dec 2019 09:14:49 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBTEEhIf191744; Sun, 29 Dec 2019 14:14:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=q9OOzmeWcv2jP2XpdBC3OnVHPmfnoc3RRZBOZ+lStJ0=; b=sb7opHn/KsaEI6nZw7lZxw5+ggUAxK+ghe2VqNwo7c8/j5qmBAuoJrc190TzT6MhMcEn a5ptXoHPzfmfqPLdw3jIZY/KcqVyV3wTcNnw3tqYWlVRw5Id2pzPIhv2s/nWMZks05mw Af+RGTT4/nyQ89j2XCoOcVZLVPlYH6cpksYudMqxj0HUyVQgoEVVibYHHA793qLof4/m 2F7gCD8+WuvkuNx+MtWcKZ2RXVFS5XDzknvqZTaJV/8TIlqqy3w6ulcjUCzaWUXieH+n EzRpLH4HD9l0/pRqLHCHq+K312WoMiDMusktoAcgCxXlCck/F86qm+g/ecy7opSAE9rZ eg== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 2x5ypqayjf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 29 Dec 2019 14:14:43 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBTEDocr159832; Sun, 29 Dec 2019 14:14:43 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 2x6h6nr613-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 29 Dec 2019 14:14:42 +0000 Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id xBTEEfbC008430; Sun, 29 Dec 2019 14:14:41 GMT In-Reply-To: <<83blrrns4o.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4939.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9484 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912290136 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9484 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912290136 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173886 Archived-At: > > > I think `y-or-n-p' should probably just use `(sit-for 1)' > > > after it shows the prompt + answer, > > > > That would always delay the caller of y-or-n-p by one second. I'm > > pretty sure that would be highly annoying. >=20 > Yes. And besides, this area underwent significant changes since Emacs > 26.3, so I suggest to try the latest emacs-27 branch before continuing > the discussion. `read-key', and functions like `y-or-n-p' that use it or do the same thing, should not be made to read from the minibuffer. The fact that such functions have prompted using the echo area is bad enough. Making them read from the minibuffer is even worse. That's my opinion about (my understanding of) those "significant changes". Doing that just introduces a new (design) bug that should, and will hopefully someday, be fixed.