]> git.eshelyaron.com Git - emacs.git/commitdiff
(jka-compr-insert-file-contents): Don't run
authorRichard M. Stallman <rms@gnu.org>
Sun, 14 Jun 1998 19:01:34 +0000 (19:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 14 Jun 1998 19:01:34 +0000 (19:01 +0000)
after-insert-file-functions, since caller does that.

lisp/jka-compr.el

index 0ee24e94c66b53c9e5613c9347cc1d1659744899..23c4eccf6742778fe1279c4a90cf5df1ccfb2e44 100644 (file)
@@ -613,18 +613,22 @@ There should be no more than seven characters after the final `/'."
           (signal 'file-error
                   (cons "Opening input file" (nth 2 notfound))))
 
-         ;; Run the functions that insert-file-contents would.
-         (let ((p after-insert-file-functions)
-               (insval size))
-           (while p
-             (setq insval (funcall (car p) size))
-             (if insval
-                 (progn
-                   (or (integerp insval)
-                       (signal 'wrong-type-argument
-                               (list 'integerp insval)))
-                   (setq size insval)))
-             (setq p (cdr p))))
+         ;; This is done in insert-file-contents after we return.
+         ;; That is a little weird, but better to go along with it now
+         ;; than to change it now.
+
+;;;      ;; Run the functions that insert-file-contents would.
+;;;      (let ((p after-insert-file-functions)
+;;;            (insval size))
+;;;        (while p
+;;;          (setq insval (funcall (car p) size))
+;;;          (if insval
+;;;              (progn
+;;;                (or (integerp insval)
+;;;                    (signal 'wrong-type-argument
+;;;                            (list 'integerp insval)))
+;;;                (setq size insval)))
+;;;          (setq p (cdr p))))
 
          (list filename size))