1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00

Ask for confirmation in ido-file-internal (Bug#1238).

* ido.el (ido-file-internal): Ask for confirmation before
overwriting an existing file (Bug#1238).
This commit is contained in:
Ryan Twitchell 2010-12-17 18:56:03 +08:00 committed by Chong Yidong
parent 4039c78625
commit 395542c68d
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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)