Function: inversion-require
inversion-require is a byte-compiled function defined in
inversion.el.gz.
Signature
(inversion-require PACKAGE VERSION &optional FILE DIRECTORY &rest RESERVED)
Documentation
Declare that you need PACKAGE with at least VERSION.
PACKAGE might be found in FILE. (See require.)
Throws an error if VERSION is incompatible with what is installed.
Optional argument DIRECTORY is a location where new versions of
this tool can be located. If there is a versioning problem and
DIRECTORY is provided, inversion will offer to download the file.
Optional argument RESERVED is saved for later use.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/inversion.el.gz
(defun inversion-require (package version &optional file directory
&rest _reserved)
"Declare that you need PACKAGE with at least VERSION.
PACKAGE might be found in FILE. (See `require'.)
Throws an error if VERSION is incompatible with what is installed.
Optional argument DIRECTORY is a location where new versions of
this tool can be located. If there is a versioning problem and
DIRECTORY is provided, inversion will offer to download the file.
Optional argument RESERVED is saved for later use."
(require package file)
(let ((err (inversion-test package version)))
(when err
(if directory
(inversion-download-package-ask err package directory version)
(error err)))
;; Return the package symbol that was required.
package))