From: Chong Yidong <cyd@stupidchicken.com>
To: Ryan Twitchell <metatheorem@gmail.com>
Cc: 1238@debbugs.gnu.org, "andreas.amann" <andreas.amann@tyndall.ie>
Subject: bug#1238: ido-write-file makes it easy to overwrite files unintentionally
Date: Fri, 17 Dec 2010 18:56:21 +0800 [thread overview]
Message-ID: <87oc8k3bxm.fsf@stupidchicken.com> (raw)
In-Reply-To: <4CDEA766.50302@gmail.com> (Ryan Twitchell's message of "Sat, 13 Nov 2010 09:57:42 -0500")
Ryan Twitchell <metatheorem@gmail.com> writes:
> I encountered this problem independently in version 23.2.1, and think
> I have a very simple fix.
>
> As a drop in replacement for write-file, ido-write-file does not
> prompt the user for confirmation when overwriting an existing file:
>
> The function ido-file-internal uses plain old write-file to carry out
> this action:
>
> ido functions are primarily for interactive use, so it seems safe to
> pass a true value to write-file's CONFIRM arg (on the last line above)
> to always enable prompting:
>
> (write-file filename t)
>
> A quick test confirmed this change added the expected behavior.
Sounds reasonable. I've committed a fix following your suggestion;
thanks.
prev parent reply other threads:[~2010-12-17 10:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 10:53 bug#1238: 23.0.60; ido-write-file makes it easy to overwrite files unintentionally andreas.amann
2010-11-13 14:57 ` bug#1238: " Ryan Twitchell
2010-12-17 10:56 ` Chong Yidong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oc8k3bxm.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=1238@debbugs.gnu.org \
--cc=andreas.amann@tyndall.ie \
--cc=metatheorem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.