From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#25303: 24.5; `write-region' enhancement request for MUSTBENEW parameter Date: Sat, 27 Jul 2019 12:46:50 +0200 Message-ID: <87sgqrkb51.fsf@mouse.gnus.org> References: <9621f30d-6310-47d0-a85c-b8260fc1cf50@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="162380"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 25303@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 27 12:47:09 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 1hrKEG-000g60-3Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 12:47:08 +0200 Original-Received: from localhost ([::1]:44920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrKEF-0005nY-24 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 06:47:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55557) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrKEC-0005nS-7f for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 06:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrKEB-0002PV-1C for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 06:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34843) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrKEA-0002PC-KS for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 06:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrKEA-0008Va-FC for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 06:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 10:47: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.156422441732423 (code B ref 25303); Sat, 27 Jul 2019 10:47:02 +0000 Original-Received: (at 25303) by debbugs.gnu.org; 27 Jul 2019 10:46:57 +0000 Original-Received: from localhost ([127.0.0.1]:43664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrKE4-0008Qa-Cl for submit@debbugs.gnu.org; Sat, 27 Jul 2019 06:46:56 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:35990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrKE2-0008OH-P3 for 25303@debbugs.gnu.org; Sat, 27 Jul 2019 06:46:55 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrKDy-0006MA-Df; Sat, 27 Jul 2019 12:46:52 +0200 In-Reply-To: <9621f30d-6310-47d0-a85c-b8260fc1cf50@default> (Drew Adams's message of "Fri, 30 Dec 2016 14:33:42 -0800 (PST)") 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:163837 Archived-At: Drew Adams writes: > 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 decide > whether to overwrite. 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? > 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. It's a slightly non-compatible change, but I think it sounds unlikely to be bothersome (as you point out). Anybody else have an opinion here? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no