From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#46594: [External] : bug#46594: Use short answers Date: Wed, 24 Feb 2021 23:55:30 +0000 Message-ID: References: <87im6qikpo.fsf@mail.linkov.net> <878s7gjftt.fsf@gnus.org> <87v9ahi9uk.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7169"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , "46594@debbugs.gnu.org" <46594@debbugs.gnu.org> To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 25 00:56:26 2021 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 1lF413-0001ki-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Feb 2021 00:56:25 +0100 Original-Received: from localhost ([::1]:35028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lF411-0008LL-V8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Feb 2021 18:56:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lF40g-0008LF-B4 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2021 18:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lF40f-0002Gw-Um for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2021 18:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lF40f-0002jX-Tu for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2021 18:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Feb 2021 23:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46594 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46594-submit@debbugs.gnu.org id=B46594.161421094210482 (code B ref 46594); Wed, 24 Feb 2021 23:56:01 +0000 Original-Received: (at 46594) by debbugs.gnu.org; 24 Feb 2021 23:55:42 +0000 Original-Received: from localhost ([127.0.0.1]:36226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lF40M-0002iz-2a for submit@debbugs.gnu.org; Wed, 24 Feb 2021 18:55:42 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:35916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lF40K-0002im-3M for 46594@debbugs.gnu.org; Wed, 24 Feb 2021 18:55:41 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11ONtWBD117452; Wed, 24 Feb 2021 23:55:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=BNrNjXqDtPOccdbkI68d9x0AzWQLniyWk3rzS59v+fg=; b=vqkoOUvzqaAnoZo38VXtkyGO53bSkEgEhWpEhcfNG8BYcy3EeQEgT+2JA/KRvF1BDzye yqpoIA325P2eza/iYloa/zYl8rZytj7v+NLsyjA2cD0rZAFwAEynIolE5TSdjAWPVB2j IkYP34QTOtbBqGGM2eRwU2JibApvkNZsnB8+iC29Zd21reeHGYqg77e8+OsRUJVar3w0 f9fSsNEXgu2duHgBbifnfTsHKcycllQapxfAxxlvA3PlSiMNAqMEwCAHZrX+orENqrV/ AKgV8NNLHVIJmAkfFEQSCdW3lQd10zDAX6bjTOi3QJ6/q/LGV4RMbKW5727GqRtVJDZL Nw== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 36tsur4s6p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Feb 2021 23:55:32 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11ONoCRo031116; Wed, 24 Feb 2021 23:55:32 GMT Original-Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by userp3020.oracle.com with ESMTP id 36uc6tscua-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Feb 2021 23:55:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NeU28rPVeVdaPMygyRxGklccvsltawzbV9A80fCcBIBXV2tEUkK6kBnfPHzJydJC7IBnt+QcLz92iGsUuh9h4jxreD2jx0dVC/K5rIq7iP8vRma1bbi/2ufvFIPtyGkvbIwiRC6YCWOyl6AWjPmg5y593NFh3uV2N3PfJI7u29Fhm70OLWv4hhTqGA/0pTutT2nRkhs6JbEalpUkEf1n1islz4qzG+FHRYH0kdoG9wcwzhfxlH9Nq0yE9duLcMQmayV0SNVEcB3iV9KQJX7qYvCPjRQWxglrVwETZesUmxasio+naWBoKX1pFo9fAuI1SbKpNM2kY2D5BNodzszGGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BNrNjXqDtPOccdbkI68d9x0AzWQLniyWk3rzS59v+fg=; b=eoZC5JUkaZeR3TgKGPcRZxOCcjtTuEybbT9SSrpG152ZkcuUbFM+9LIpzRTAXXcgHZFrLIHHlzu2geVBKCPmAUrQlttHJSpTABJnZJJ7gwS1DcOam3DyCQ4qPkcn65PGHqHaOTJsNxS6875fx2U3Mtai75pk7rGBZkgGtYhsS9t+E3l3OUCl25yAeAX3Xrp9PlR6H7FvU8JazTiK4j5NTP1wH73j3VSMjyhHYqv8i+1PmxZkEarw8v0Z8w+U27SDzul5pB/Cbz0tB8Bfpt+pyrez9o1rWpw6KVMTUF8vtq9K85/V3zUokSodHl/UV2gDcBp6qJeUJSK1PN0gLjGnPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BNrNjXqDtPOccdbkI68d9x0AzWQLniyWk3rzS59v+fg=; b=fRNUgi3IFzc//zFZXZXfc1GKgm0xoyBuwmE0W/zVunRycUTQQ6Nv1Yuny5X6hKtXFU9uXWHRzCAjBWHEqWakt2hZCj8J+/JOHbsgI47gfe+ArT5H/XsN1RJxSgGysOJVTay4SxmGb1iQ/4oFe1lx1OzGbCdZzj1l/ysk0VzozmQ= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2640.namprd10.prod.outlook.com (2603:10b6:805:49::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.19; Wed, 24 Feb 2021 23:55:30 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3868.032; Wed, 24 Feb 2021 23:55:30 +0000 Thread-Topic: [External] : bug#46594: Use short answers Thread-Index: AQHXCt2VZr5CpA/GQkqMlbrvWFAwjKpn9uUg In-Reply-To: <87v9ahi9uk.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US authentication-results: linkov.net; dkim=none (message not signed) header.d=none;linkov.net; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c5c08a8-f350-49b6-de38-08d8d91faa9c x-ms-traffictypediagnostic: SN6PR10MB2640: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cPgU97h0P70MM3kaiU4VhuLUw253xt6RXMLDvmUxjw7g7GaLBgG1XvzS3PYh5KABemMAo5q19CVcIEKvCjcFt5ORpS1hL9EBsCyJruo8e6Y0xwzdTBVcdGxps5wLtRGnMR6/lrUkS4yp+QXZJLhRFSwkba7WUaMioTNjpReYnpCLnIblnK974Zf7/ri951v+M2Q2kUF0n98Kxqhhyt1wvy4wxmQABZ3hlOiaHydI3tv19bShswM0hUbL4JSwIg7w1fhyf+LJrAmkODTyfyq+4jL6am5uvq5iM7SZ0SBgBWSuKXNosDQ/YZRErst54FFEGkaW9fkEOnomehY6q5uQDao6lvf5QHdvJEsdfu680GDQ+mymCnQAjhL7fHKJ3hEMz0qmd0HWKnlXt/nCsUJ5vWkrVUgDyxjkAqxk90OWK10+cqveeFgPehwH1Xu8CI9sYCKEw5h4UfJuln40Mt5k3Lbm4vMSv6PBpf1Jzy7+GGHs1WDci8ZmgY66SnbFDQdKv2Bi+A8libULCOZSaiXV+Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(376002)(136003)(366004)(39860400002)(396003)(55016002)(33656002)(26005)(8936002)(64756008)(5660300002)(9686003)(76116006)(52536014)(66946007)(66476007)(6506007)(8676002)(66446008)(2906002)(7696005)(66556008)(4326008)(186003)(83380400001)(478600001)(71200400001)(316002)(6916009)(54906003)(86362001)(44832011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Une0JhDNASGwxy1rjjis+f+xpochMjVWT/1U1LeBXCAZiWtN80Pr3v4ZSbLQHybTX4L3rjd3lMVWH/nbEwEKkuywVlhesVMho3D5cErUiPfX/LiYaG7caFJLlUTHkoMnZ9p5li4ZUCoceRduIRNsHkvsSUnxRWTxTDMm8H2/UMag4tubEmffPdjbX5Sz0eU60b+LM2uT8gFBWUuLtE+DWSsHG+ioc1IFzBuFyAyEyznLzD82RI2LFhek30pDDf1vT8EI8MvZrSv8oTaeSAUgOn9kJ8pSNxKnC5SSzQdHk5Xd3G8/Qst2hWzdx3vugM6kH0JbgqK9ec8tx8QiHePMBwWi2UW2l/nrmuI1FpmRmO/cUpRcUQOoU9LxmqU2UvsuWPDpwMvGsbXH0GY1UsNmW6Ob3Hz+GwFq1528r+CJKHHORHXAihbkn+5F+6lLNqhSKbuHxnVyMsXKFQag+SC/IVc0SqRrDWq5pHgvTaOabapk+L0NA60DTMkLyiABFWkw76q0nZ5Pan/BOC4mVLpFIUhwalyTOzopPUOc89A2hHkmkrIAmTbW5gmMp9Da49szH52rqHyLyTZiKI+XKs0a/aMdhPfN30XQ0DzARLX+Ra+LUk+Naq48bPOTJCeGFk8Y/mOkhQGVuEJFK8n/neYFgANA42qgprfslHRZN3+3mIa9NsWP63+eLaNaHAm0GdzJiHATLulhMcznOQk01pgL+zqgfYp3OEH0OfZ9w8v3BOEe2Zox9fO3cd2B/+b3 njac9tymduf6wkniR6CCKJeNm9kuwukhDK+uV6rbooQQouVJ9xqjeYsy0v2m/8B4gwFHWQgZxOIctM28BZa6I7zSqWejt9/+Xf x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c5c08a8-f350-49b6-de38-08d8d91faa9c X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2021 23:55:30.1351 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XWC5vMlW4iNR2V1GkitI+j8Br80OGuu13DJ3wXiTjqaGeoZsesLZO4x0yzyFsYN3ZZztzfBMNf7d4EN5UXKEGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2640 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9905 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102240186 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9905 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 mlxscore=0 malwarescore=0 clxscore=1015 phishscore=0 mlxlogscore=999 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102240187 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:200762 Archived-At: > > I think that the doc for this option should explicitly discourage > > using the value that abbreviates, and say why. > > > > It should say that `yes-or-no-p' is _intended_ to be used when it's > > thought that you should not respond too quickly. At least point that > > out, for users to think about before customizing. >=20 > Thanks for suggestions. Now below is a new patch with these changes. I'm not sure we should include this: and giving the wrong answer would have serious consequences That's not necessary, IMO. Not even if you change "would" (which is wrong) to "could". It's enough to say that presumably yes-or-no-p is used so you take time and perhaps think more about the answer. No need to imply serious consequences. Why do we say this? In this case it means also obeying the value of `y-or-n-p-use-read-key'. Doesn't that follow, if the behavior is that of y-or-n-p (I don't know)? If it does, then just refer them to the doc for y-or-n-p; don't repeat any of that doc here. > > Presumably this option is being added because there are apparently > > a lot of users who don't want to be slowed down by `yes-or-no-p'. > > But that's exactly the point of `yes-or-no-p'. >=20 > For many users using longer answers doesn't protect from mistakes. > Sometimes I execute a command without verifying if it's right, > e.g. first running a harmless command, then a more dangerous, > then I forget about the last command, and thinking that the last one > was the harmless command, quickly type a key sequence 'M-! M-p RET'. Yes, but this is a gross hammer (IIUC), just like defaliasing is. The fact that some particular author chose yes-or-no-p for some command, and some particular user wants y-or-n-p instead for that command, means that they don't have the same judgment. And yes, the user's will should prevail. But does it follow that because of that occurrence our user wants to make all yes-or-no-p act like y-or-n-p? I think we both agree that use of one or the other is a judgment call. What we should do, IMO is twofold: 1. Discourage blanket aliasing (whether by an option or another way), to replace all yes-or-no-p by y-or-n-p behavior. 2. Provide a way for users to establish their preference for a given occurrence. Not provide only a way to replace ALL yes-or-no-p behavior with y-or-n-p behavior. How to do #2, I don't know. Give users some way to be asked what they want? E.g., yes-or-no-p could accept some input besides "yes" or "no", which would cause them to be prompted whether to change THIS occurrence to y-or-n-p behavior, or ALL occurrences, or cancel (no change - return to yes/no prompt). I don't think this is a great solution, but I do think that we should try to find some way to accommodate #2. It's not right to just give users defaliasing as the only solution. Another possibility, for part of this, would be to have your variable accept a value of `ask', which would prompt as just mentioned (e.g. the first time for a given occurrence). IOW, let users choose, for the option: (1) replace always, never asking, (2) ask about replacing for an occurrence, or (3) no replacement and no asking.