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#25303: 24.5; `write-region' enhancement request for MUSTBENEW parameter Date: Sat, 27 Jul 2019 10:02:49 -0700 (PDT) Message-ID: <3257e031-78dc-483b-98f9-77c54dfcc836@default> References: <9621f30d-6310-47d0-a85c-b8260fc1cf50@default> <87sgqrkb51.fsf@mouse.gnus.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="49224"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 25303@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 27 19:04:10 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 1hrQ78-000Ch9-EK for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 19:04:10 +0200 Original-Received: from localhost ([::1]:46684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrQ77-0001HA-Ec for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 13:04:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50132) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrQ74-0001Gr-0z for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 13:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrQ73-0008Vo-2g for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 13:04:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36518) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrQ72-0008V8-UL for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 13:04:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrQ70-0005t4-7W for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 13:04:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 17:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25303 X-GNU-PR-Package: emacs Original-Received: via spool by 25303-submit@debbugs.gnu.org id=B25303.156424698722527 (code B ref 25303); Sat, 27 Jul 2019 17:04:02 +0000 Original-Received: (at 25303) by debbugs.gnu.org; 27 Jul 2019 17:03:07 +0000 Original-Received: from localhost ([127.0.0.1]:45339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrQ66-0005rG-HX for submit@debbugs.gnu.org; Sat, 27 Jul 2019 13:03:06 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:56994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrQ64-0005qK-Bs for 25303@debbugs.gnu.org; Sat, 27 Jul 2019 13:03:04 -0400 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 x6RGwpvm019312; Sat, 27 Jul 2019 17:02:58 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-2018-07-02; bh=qejTUeIrfBzoza8O//bOOiEzfLNt25+3tMoeeXVsCvo=; b=N8qbz2HJlQdd2ZMK1iiqgx0tWuqEbewiuHlVRMGeavUZ9KqL0VgbouPtNBn8JblrHaVx QEatsTK4JaB1VC+WcobRBds12pia/FC51CYRTi4z3yGs6U/6zt7CPdgCLcPvrJsdjh65 fsPbBB1PzvQnQlAtOph3BkNWycZ2NMqRLaTeZUBOEgXJ2NeNEtgbgXeD1HkmN8RmS7/R PPkyzg+6/pIvGbBJ78jT7zF2v/wh2g7MruugNAqp/icfbNF3PzYu98YXqAj2POt7y0S1 TWaLRLirfGJlaC+XogPKSL64Fm8bwTpKc80pito6j0AqJzZORn1KXbBgwpa0PQyrnQk9 mw== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 2u0f8qhhvt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 27 Jul 2019 17:02:58 +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 x6RGwLkH037922; Sat, 27 Jul 2019 17:02:58 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2u0dxn7dm0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 27 Jul 2019 17:02:58 +0000 Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x6RH2of9026314; Sat, 27 Jul 2019 17:02:50 GMT In-Reply-To: <87sgqrkb51.fsf@mouse.gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9331 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-1906280000 definitions=main-1907270214 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9331 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=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907270214 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:163905 Archived-At: > > If parameter MUSTBENEW is not `excl' and is non-nil then the user is > > prompted to confirm overwriting. The enhancement would be that if > > the value is a string then use that as the confirmation prompt. > > > > The would allow for more specific prompting, such as saying something > > more than that the file exists - something that can help the user decid= e > > whether to overwrite. >=20 > I think that does make some sense, but do you have a specific scenario > in mind? What kind of prompt would help the user more than the > standard prompt here? I might have had a specific scenario in mind when I filed the request 3 years ago, but if so it's forgotten by now. ;-) Especially since there's no real workaround to realize the requested behavior easily. > > This is pretty much backward compatible: > > In existing code it is likely that few, > > if any, non-nil and non-`excl' arg values > > are strings. And in the case of any that are, > > the use of the string as a prompt will make > > things obvious to a maintainer, if not > > immediately to the user. >=20 > It's a slightly non-compatible change, but I think it sounds unlikely > to be bothersome (as you point out). >=20 > Anybody else have an opinion here?