# HG changeset patch # User Daiki Ueno # Date 1212383376 0 # Node ID 57f3dde2b9be503dc71239f1e411aa9ccf05ae20 # Parent 698af1a04b6c5a24b332acee2310d5234510b607 (epa-file-write-region): Write the entire buffer content if START is nil. diff -r 698af1a04b6c -r 57f3dde2b9be lisp/ChangeLog --- a/lisp/ChangeLog Mon Jun 02 04:07:43 2008 +0000 +++ b/lisp/ChangeLog Mon Jun 02 05:09:36 2008 +0000 @@ -1,3 +1,8 @@ +2008-06-02 Daiki Ueno + + * epa-file.el (epa-file-write-region): Write the entire buffer + content if START is nil. + 2008-06-01 Magnus Henoch * play/cookie1.el: Remove obsolete TO DO comment. (It was diff -r 698af1a04b6c -r 57f3dde2b9be lisp/epa-file.el --- a/lisp/epa-file.el Mon Jun 02 04:07:43 2008 +0000 +++ b/lisp/epa-file.el Mon Jun 02 05:09:36 2008 +0000 @@ -182,6 +182,9 @@ context (if (stringp start) (epa-file--encode-coding-string start coding-system) + (unless start + (setq start (point-min)) + (setq end (point-max))) (epa-file--encode-coding-string (buffer-substring start end) coding-system)) (if (or epa-file-select-keys