changeset 53304:b9463f85fb04

(jka-compr-insert-file-contents): Avoid error when file not found.
author Andreas Schwab <schwab@suse.de>
date Thu, 25 Dec 2003 11:05:57 +0000
parents 9e3a6298633c
children 584e7f4d5c37
files lisp/jka-compr.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/jka-compr.el	Thu Dec 25 04:52:54 2003 +0000
+++ b/lisp/jka-compr.el	Thu Dec 25 11:05:57 2003 +0000
@@ -590,10 +590,11 @@
 	     (file-exists-p local-copy)
 	     (delete-file local-copy)))
 
-	  (decode-coding-inserted-region
-	   (point) (+ (point) size)
-	   (jka-compr-byte-compiler-base-file-name file)
-	   visit beg end replace)
+	  (unless notfound
+	    (decode-coding-inserted-region
+	     (point) (+ (point) size)
+	     (jka-compr-byte-compiler-base-file-name file)
+	     visit beg end replace))
 
 	  (and
 	   visit