OSDN Git Service

* epa-file.el (epa-file-insert-file-contents): Ignore errors from
authorDaiki Ueno <ueno@unixuser.org>
Mon, 30 Jul 2007 06:30:33 +0000 (06:30 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Mon, 30 Jul 2007 06:30:33 +0000 (06:30 +0000)
file-local-copy.

ChangeLog
epa-file.el

index 4065545..24b5a99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-30  Daiki Ueno  <ueno@unixuser.org>
+
+       * epa-file.el (epa-file-insert-file-contents): Ignore errors from
+       file-local-copy.
+
 2007-07-29  Daiki Ueno  <ueno@unixuser.org>
 
        * EasyPG: Version 0.0.14 released.
index 66ed5b9..a6a800e 100644 (file)
@@ -152,7 +152,10 @@ May either be a string or a list of strings.")
   (if (and visit (or beg end))
       (error "Attempt to visit less than an entire file"))
   (setq file (expand-file-name file))
-  (let* ((local-copy (epa-file-run-real-handler #'file-local-copy (list file)))
+  (let* ((local-copy
+         (condition-case inl
+             (epa-file-run-real-handler #'file-local-copy (list file))
+           (error)))
         (local-file (or local-copy file))
         (context (epg-make-context))
         string length entry)