diff lisp/ido.el @ 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 c00190a8c8ef
children cf323f3bfe7f
line wrap: on
line diff
--- 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)