diff options
| author | Daiki Ueno | 2008-06-02 05:09:36 +0000 |
|---|---|---|
| committer | Daiki Ueno | 2008-06-02 05:09:36 +0000 |
| commit | 6843296d5b7b4b987d10c4cdcf1db30729ba2df2 (patch) | |
| tree | 19a3c8160998635b0bb8d36ff22beb1f260f12b4 /lisp | |
| parent | 1d1e1245352a2efc419d1ca82153676f37b273ec (diff) | |
| download | emacs-6843296d5b7b4b987d10c4cdcf1db30729ba2df2.tar.gz emacs-6843296d5b7b4b987d10c4cdcf1db30729ba2df2.zip | |
(epa-file-write-region): Write the entire buffer
content if START is nil.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/epa-file.el | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 536fc4a54e2..adef3a31bfb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-06-02 Daiki Ueno <ueno@unixuser.org> | ||
| 2 | |||
| 3 | * epa-file.el (epa-file-write-region): Write the entire buffer | ||
| 4 | content if START is nil. | ||
| 5 | |||
| 1 | 2008-06-01 Magnus Henoch <mange@freemail.hu> | 6 | 2008-06-01 Magnus Henoch <mange@freemail.hu> |
| 2 | 7 | ||
| 3 | * play/cookie1.el: Remove obsolete TO DO comment. (It was | 8 | * play/cookie1.el: Remove obsolete TO DO comment. (It was |
diff --git a/lisp/epa-file.el b/lisp/epa-file.el index 25edba5a2dc..102e8fd7e49 100644 --- a/lisp/epa-file.el +++ b/lisp/epa-file.el | |||
| @@ -182,6 +182,9 @@ | |||
| 182 | context | 182 | context |
| 183 | (if (stringp start) | 183 | (if (stringp start) |
| 184 | (epa-file--encode-coding-string start coding-system) | 184 | (epa-file--encode-coding-string start coding-system) |
| 185 | (unless start | ||
| 186 | (setq start (point-min)) | ||
| 187 | (setq end (point-max))) | ||
| 185 | (epa-file--encode-coding-string (buffer-substring start end) | 188 | (epa-file--encode-coding-string (buffer-substring start end) |
| 186 | coding-system)) | 189 | coding-system)) |
| 187 | (if (or epa-file-select-keys | 190 | (if (or epa-file-select-keys |