Function: mh-require

mh-require is a function alias for require, defined in fns.c.

This function is obsolete since 29.1; use require instead.

Signature

(mh-require FEATURE &optional FILENAME NOERROR)

Documentation

If FEATURE is not already loaded, load it from FILENAME.

If FEATURE is not a member of the list features, then the feature was not yet loaded; so load it from file FILENAME.

If FILENAME is omitted, the printname of FEATURE is used as the file name, and load is called to try to load the file by that name, after appending the suffix .elc, .el, or the system-dependent suffix for dynamic module files, in that order; but the function will not try to load the file without any suffix. See get-load-suffixes for the complete list of suffixes.

To find the file, this function searches the directories in load-path.

If the optional third argument NOERROR is non-nil, then, if the file is not found, the function returns nil instead of signaling an error. Normally the return value is FEATURE.

The normal messages issued by load at start and end of loading FILENAME are suppressed.

Aliases

mh-require (obsolete since 29.1)