]> git.eshelyaron.com Git - emacs.git/commitdiff
(jka-compr-insert-file-contents): Run the
authorRichard M. Stallman <rms@gnu.org>
Tue, 23 Aug 1994 19:53:39 +0000 (19:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 23 Aug 1994 19:53:39 +0000 (19:53 +0000)
after-insert-file-functions.

lisp/jka-compr.el

index 3247042eb7e6fe03ee6308384b0dc9507a2ab7a8..768ed52eecf82818f5e0dc5ee21ff4b41d991def 100644 (file)
@@ -531,8 +531,15 @@ There should be no more than seven characters after the final `/'")
                                                nil
                                                uncompress-args))
                      (setq size (- (point) start))
-                     (goto-char start))
-
+                     (goto-char start)
+                     ;; Run the functions that insert-file-contents would.
+                     (let ((list after-insert-file-functions)
+                           (value size))
+                       (while list
+                         (setq value (funcall (car list) size))
+                         (if value
+                             (setq size value))
+                         (setq list (cdr list)))))
 
                  (error
                   (if (and (eq (car error-code) 'file-error)