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:08:07 -0800 (PST) Message-ID: <4bbe14bc-3802-4310-a506-dad1f0c1f7ae@default> References: <787722a4-9679-4160-903d-d9de42801ddf@default> <5561aae8-fa46-4228-833a-912fc49d789e@default> <87blrrwlsf.fsf@hase.home> 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="137662"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38785@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 29 15:09: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 1ilZFq-000Zfr-0f for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Dec 2019 15:09:14 +0100 Original-Received: from localhost ([::1]:52366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilZFo-0001ho-SU for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Dec 2019 09:09:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39973) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilZFh-0001hV-OK for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 09:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilZFe-0002M9-P2 for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 09:09:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilZFe-0002LG-Jq for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 09:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ilZFe-0004m6-FC for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 09:09: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:09: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.157762850018302 (code B ref 38785); Sun, 29 Dec 2019 14:09:02 +0000 Original-Received: (at 38785) by debbugs.gnu.org; 29 Dec 2019 14:08:20 +0000 Original-Received: from localhost ([127.0.0.1]:59378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilZEy-0004l8-Bw for submit@debbugs.gnu.org; Sun, 29 Dec 2019 09:08:20 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:59730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilZEx-0004ku-5X for 38785@debbugs.gnu.org; Sun, 29 Dec 2019 09:08:19 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBTE7aHD013562; Sun, 29 Dec 2019 14:08:13 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=5EKdQUnp+hj7GKfhnwqZ0P1QIwzFtZSfki12BRjOXCk=; b=Oq9URENRqbTE2cZXv5AV2+5qVq3ElsdJsSWCR6JaDJHdrN9ejg2Tcl+GoZjOM/MouiU5 eT8nP7B8vJoZN7IjbMWsNjq4BbpMqbYLZOSJxTmhhSO2Z9fzwgOxANpgu36qMAF5Pz4B e0flSGqdtBOT1lK0FCixOX0Iq6889Oeff9zILZre0YzMaZwjfQbYG1hgOrX6/nYyGmcp ruSfLoTJqmwhBA3hfjTWUDrXJ4sEim650b0DQIAafi8pYha6D+wVEBfg8ofsZUHEnMe8 vjYyVtQ+5RD1xDBUFD0yRQogZ2T5UXFkil0YSulHLySU52Oir9eogWOm6RQw56o9U75o EA== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2x5xftb649-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 29 Dec 2019 14:08:13 +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 xBTE3p1l145989; Sun, 29 Dec 2019 14:08:12 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3020.oracle.com with ESMTP id 2x6h6nr2c5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 29 Dec 2019 14:08:12 +0000 Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id xBTE87F1013402; Sun, 29 Dec 2019 14:08:09 GMT In-Reply-To: <87blrrwlsf.fsf@hase.home> 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-1912290135 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-1912290135 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:173884 Archived-At: > > I think `y-or-n-p' should probably just use > > `(sit-for 1)' after it shows the prompt + answer, >=20 > That would always delay the caller of y-or-n-p by one > second. I'm pretty sure that would be highly annoying. 1. Not always delay. It's sit-for, not sleep-for, after all. Have you tried it? I haven't noticed a problem with it so far, but there are no doubt lots of possible use cases. 2. More annoying than the problem it aims to solve? 3. Alternative solutions are welcome. The basic problem stems from `read-key' prompting in the echo area. That's really not ideal, at least in some contexts. (But making it read using the minibuffer would be an even bigger mistake, IMO.)