Function: jka-compr-load
jka-compr-load is a byte-compiled function defined in jka-compr.el.gz.
Signature
(jka-compr-load FILE &optional NOERROR NOMESSAGE NOSUFFIX MUST-SUFFIX)
Documentation
Documented as original.
Source Code
;; Defined in /usr/src/emacs/lisp/jka-compr.el.gz
;; Support for loading compressed files.
(defun jka-compr-load (file &optional noerror nomessage _nosuffix _must-suffix)
"Documented as original."
(let* ((local-copy (jka-compr-file-local-copy file))
(load-file (or local-copy file)))
(unwind-protect
(let (inhibit-file-name-operation
inhibit-file-name-handlers)
(or nomessage
(message "Loading %s..." file))
(let ((load-force-doc-strings t))
(load load-file noerror t t))
(or nomessage
(message "Loading %s...done." file))
;; Fix up the load history to point at the right library.
(let ((l (or (assoc load-file load-history)
;; On MS-Windows, if load-file is in
;; temporary-file-directory, it will look like
;; "c:/DOCUME~1/USER/LOCALS~1/foo", whereas
;; readevalloop will record its truename in
;; load-history. Therefore try truename if the
;; original name is not in load-history.
(assoc (file-truename load-file) load-history))))
;; Remove .gz and .elc?.
(while (file-name-extension file)
(setq file (file-name-sans-extension file)))
(setcar l file)))
(delete-file local-copy))
t))