diff options
| author | Ryan Twitchell <metatheorem@gmail.com> | 2010-12-17 18:56:03 +0800 |
|---|---|---|
| committer | Chong Yidong <cyd@stupidchicken.com> | 2010-12-17 18:56:03 +0800 |
| commit | 395542c68d4ba3c49459291456624d607365ebb5 (patch) | |
| tree | 999ad6be455d82a4920eaf094e63d65c4e1f4035 /lisp | |
| parent | 4039c78625bb20cf57b434a7d395bf2473e45133 (diff) | |
| download | emacs-395542c68d4ba3c49459291456624d607365ebb5.tar.gz | |
Ask for confirmation in ido-file-internal (Bug#1238).
* ido.el (ido-file-internal): Ask for confirmation before
overwriting an existing file (Bug#1238).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ido.el | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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. 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) |
