changeset 111992:7e4ae0dd59c9

Ask for confirmation in ido-file-internal (Bug#1238). * ido.el (ido-file-internal): Ask for confirmation before overwriting an existing file (Bug#1238).
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 17 Dec 2010 18:56:03 +0800
parents 968255ee954a
children 5a6a18bf3302
files lisp/ChangeLog lisp/ido.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Dec 17 12:04:06 2010 +0800
+++ b/lisp/ChangeLog	Fri Dec 17 18:56:03 2010 +0800
@@ -1,3 +1,8 @@
+2010-12-17  Ryan Twitchell  <metatheorem@gmail.com>  (tiny change)
+
+	* ido.el (ido-file-internal): Ask for confirmation before
+	overwriting an existing file (Bug#1238).
+
 2010-12-16  Chong Yidong  <cyd@stupidchicken.com>
 
 	* tool-bar.el (tool-bar-setup): Add separators.
--- a/lisp/ido.el	Fri Dec 17 12:04:06 2010 +0800
+++ b/lisp/ido.el	Fri Dec 17 18:56:03 2010 +0800
@@ -2430,7 +2430,7 @@
 	(ido-record-command 'write-file filename)
 	(add-to-history 'file-name-history filename)
 	(ido-record-work-directory)
-	(write-file filename))
+	(write-file filename t))
 
        ((eq method 'read-only)
 	(ido-record-work-file filename)