From 395542c68d4ba3c49459291456624d607365ebb5 Mon Sep 17 00:00:00 2001 From: Ryan Twitchell Date: Fri, 17 Dec 2010 18:56:03 +0800 Subject: [PATCH] Ask for confirmation in ido-file-internal (Bug#1238). * ido.el (ido-file-internal): Ask for confirmation before overwriting an existing file (Bug#1238). --- lisp/ChangeLog | 5 +++++ lisp/ido.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.5