summaryrefslogtreecommitdiff
path: root/lisp/jka-compr.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-06-14 19:01:34 +0000
committerRichard M. Stallman <rms@gnu.org>1998-06-14 19:01:34 +0000
commit5c6f2f2a477cc27374db11077745e62cb30aaeb2 (patch)
tree31bc5956de370cb831b53259d355fbd7dee9e1c9 /lisp/jka-compr.el
parent7a784f27db9875b8efcb7e71d87769281463f2a0 (diff)
downloademacs-5c6f2f2a477cc27374db11077745e62cb30aaeb2.tar.gz
(jka-compr-insert-file-contents): Don't run
after-insert-file-functions, since caller does that.
Diffstat (limited to 'lisp/jka-compr.el')
-rw-r--r--lisp/jka-compr.el28
1 files changed, 16 insertions, 12 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el
index 0ee24e94c66..23c4eccf674 100644
--- a/lisp/jka-compr.el
+++ b/lisp/jka-compr.el
@@ -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))