From: Ryan Twitchell Date: Fri, 17 Dec 2010 10:56:03 +0000 (+0800) Subject: Ask for confirmation in ido-file-internal (Bug#1238). X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~1322^2~278^2~89 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=395542c68d4ba3c49459291456624d607365ebb5;p=emacs.git Ask for confirmation in ido-file-internal (Bug#1238). * ido.el (ido-file-internal): Ask for confirmation before overwriting an existing file (Bug#1238). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6a4c0a0f73b..862c68273fd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-17 Ryan Twitchell (tiny change) + + * ido.el (ido-file-internal): Ask for confirmation before + overwriting an existing file (Bug#1238). + 2010-12-16 Chong Yidong * tool-bar.el (tool-bar-setup): Add separators. diff --git a/lisp/ido.el b/lisp/ido.el index 306485de1ad..84ae93142b4 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -2430,7 +2430,7 @@ If cursor is not at the end of the user input, move to end of input." (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)