From: Eli Zaretskii Date: Sun, 9 Jan 2022 17:02:17 +0000 (+0200) Subject: ; * src/fns.c (Frequire): Fix wording of doc string. X-Git-Tag: emacs-28.0.92~119 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=362ceb75a9ab9798cce8e3fdaddfd6745d2d97b4;p=emacs.git ; * src/fns.c (Frequire): Fix wording of doc string. --- diff --git a/src/fns.c b/src/fns.c index d46edf7705a..65dc3b61f2b 100644 --- a/src/fns.c +++ b/src/fns.c @@ -3101,25 +3101,25 @@ require_unwind (Lisp_Object old_value) } DEFUN ("require", Frequire, Srequire, 1, 3, 0, - doc: /* If feature FEATURE is not loaded, load it from FILENAME. -If FEATURE is not a member of the list `features', then the feature is -not loaded; so load the file FILENAME. + doc: /* 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' will try to load this name appended with the suffix -`.elc', `.el', or the system-dependent suffix for dynamic module -files, in that order. The name without appended suffix will not be -used. See `get-load-suffixes' for the complete list of suffixes. +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. -The directories in `load-path' are searched when trying to find the -file name. +To find the file, this function searches that directories in `load-path'. -If the optional third argument NOERROR is non-nil, then return nil if -the file is not found instead of signaling an error. Normally the -return value is FEATURE. +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 at start and end of loading FILENAME are -suppressed. */) +The normal messages issued by `load' at start and end of loading +FILENAME are suppressed. */) (Lisp_Object feature, Lisp_Object filename, Lisp_Object noerror) { Lisp_Object tem;