Fixed custom.
authorueno <ueno>
Mon, 17 Apr 2006 04:12:21 +0000 (04:12 +0000)
committerueno <ueno>
Mon, 17 Apr 2006 04:12:21 +0000 (04:12 +0000)
epa-file.el

index e216999..62322c6 100644 (file)
@@ -25,7 +25,7 @@
 
 (require 'epa)
 
-(defgroup 'epa-file
+(defgroup 'epa-file nil
   "The EasyPG Assistant hooks for transparent file encryption"
   :group 'epa)
 
@@ -47,7 +47,8 @@
       (insert (epg-decrypt-file (epg-make-context)
                                (expand-file-name (buffer-file-name))
                                nil))
-      (delete-region (point) (point-max)))
+      (delete-region (point) (point-max))
+      (decode-coding-region (point-min) (point-max) 'undecided))
     (make-local-variable 'epa-file)
     (setq epa-file (buffer-file-name))))