]> git.eshelyaron.com Git - emacs.git/commitdiff
(epa-file-write-region): Write the entire buffer
authorDaiki Ueno <ueno@unixuser.org>
Mon, 2 Jun 2008 05:09:36 +0000 (05:09 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Mon, 2 Jun 2008 05:09:36 +0000 (05:09 +0000)
content if START is nil.

lisp/ChangeLog
lisp/epa-file.el

index 536fc4a54e20d39f902923a8cb1ec6f4596c254e..adef3a31bfbb8dd43e9796d67929001d8fea9f9b 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-02  Daiki Ueno  <ueno@unixuser.org>
+
+       * epa-file.el (epa-file-write-region): Write the entire buffer
+       content if START is nil.
+
 2008-06-01  Magnus Henoch  <mange@freemail.hu>
 
        * play/cookie1.el: Remove obsolete TO DO comment.  (It was
index 25edba5a2dc0817558d6def886a63f8ba0545d8d..102e8fd7e49179a4af1f5646e9205b5911ce077e 100644 (file)
               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