From 6843296d5b7b4b987d10c4cdcf1db30729ba2df2 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 2 Jun 2008 05:09:36 +0000 Subject: [PATCH] (epa-file-write-region): Write the entire buffer content if START is nil. --- lisp/ChangeLog | 5 +++++ lisp/epa-file.el | 3 +++ 2 files changed, 8 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 536fc4a54e2..adef3a31bfb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --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 -- 2.39.2