GNU bug report logs - #25303
24.5; `write-region' enhancement request for MUSTBENEW parameter

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 30 Dec 2016 22:35:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25303 in the body.
You can then email your comments to 25303 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25303; Package emacs. (Fri, 30 Dec 2016 22:35:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 30 Dec 2016 22:35:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; `write-region' enhancement request for MUSTBENEW parameter
Date: Fri, 30 Dec 2016 14:33:42 -0800 (PST)
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.

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.

(This is certainly a lot more backward-compatible than was the change
Emacs made to respect the particular value `excl' (in Emacs 21 or 22).
That broke all existing code that was written to the previous spec that
the non-nil arg meant prompt to CONFIRM, not MUSTBENEW.)


In GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/usr --host=i686-pc-mingw32'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25303; Package emacs. (Sat, 27 Jul 2019 10:47:02 GMT) Full text and rfc822 format available.

Message #8 received at 25303 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 25303 <at> debbugs.gnu.org
Subject: Re: bug#25303: 24.5; `write-region' enhancement request for
 MUSTBENEW parameter
Date: Sat, 27 Jul 2019 12:46:50 +0200
Drew Adams <drew.adams <at> oracle.com> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25303; Package emacs. (Sat, 27 Jul 2019 17:04:02 GMT) Full text and rfc822 format available.

Message #11 received at 25303 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 25303 <at> debbugs.gnu.org
Subject: RE: bug#25303: 24.5; `write-region' enhancement request for MUSTBENEW
 parameter
Date: Sat, 27 Jul 2019 10:02:49 -0700 (PDT)
> > 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?

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.
> 
> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25303; Package emacs. (Sun, 28 Jul 2019 09:53:01 GMT) Full text and rfc822 format available.

Message #14 received at 25303 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 25303 <at> debbugs.gnu.org
Subject: Re: bug#25303: 24.5; `write-region' enhancement request for
 MUSTBENEW parameter
Date: Sun, 28 Jul 2019 11:52:46 +0200
Drew Adams <drew.adams <at> oracle.com> 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?
>
> 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.

OK; closing this bug report.  If somebody has a specific need for this,
they'll open a new bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 28 Jul 2019 09:53:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 25303 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 28 Jul 2019 09:53:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25303; Package emacs. (Sun, 28 Jul 2019 16:26:02 GMT) Full text and rfc822 format available.

Message #21 received at 25303 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 25303 <at> debbugs.gnu.org
Subject: RE: bug#25303: 24.5; `write-region' enhancement request for MUSTBENEW
 parameter
Date: Sun, 28 Jul 2019 09:25:13 -0700 (PDT)
> >> 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.
> 
> OK; closing this bug report.  If somebody has a specific need for this,
> they'll open a new bug report.

Why close an enhancement request such as this,
just because, years later, I can't recall a
specific scenario where the enhancement is
_needed_?  Why wouldn't this be a good thing
to have (and at no cost)?

Even if you're not personally convinced of the
usefulness (in spite of your saying that it
makes sense), why not leave it open, for someone
else who might decide to implement it at some
point?

What do we gain by your closing such an enhancement
suggestion?

Suppose that the OP suggesting the enhancement had
not replied to your request for remembrance of a
specific scenario.  Suppose that the OP was no
longer around.  Would that be a reason why the
enhancement is a bad idea?  I don't think so.
(And no such bad-idea reason has been given, BTW.)




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 26 Aug 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 238 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.