diff options
author | Daiki Ueno <ueno@unixuser.org> | 2008-06-02 05:09:36 +0000 |
---|---|---|
committer | Daiki Ueno <ueno@unixuser.org> | 2008-06-02 05:09:36 +0000 |
commit | 6843296d5b7b4b987d10c4cdcf1db30729ba2df2 (patch) | |
tree | 19a3c8160998635b0bb8d36ff22beb1f260f12b4 /lisp/epa-file.el | |
parent | 1d1e1245352a2efc419d1ca82153676f37b273ec (diff) | |
download | emacs-6843296d5b7b4b987d10c4cdcf1db30729ba2df2.tar.gz |
(epa-file-write-region): Write the entire buffer
content if START is nil.
Diffstat (limited to 'lisp/epa-file.el')
-rw-r--r-- | lisp/epa-file.el | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ 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 |