Mercurial > emacs
diff lispref/loading.texi @ 12067:73dc8205d259
*** empty log message ***
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 05 Jun 1995 12:23:13 +0000 |
parents | 880d7c28921c |
children | a6eb5f12b0f3 |
line wrap: on
line diff
--- a/lispref/loading.texi Sun Jun 04 01:34:39 1995 +0000 +++ b/lispref/loading.texi Mon Jun 05 12:23:13 1995 +0000 @@ -101,6 +101,10 @@ @var{filename}}). But if @var{missing-ok} is non-@code{nil}, then @code{load} just returns @code{nil}. +You can use the variable @code{load-read-function} to specify a function +for @code{load} to use instead of @code{read} for reading expressions. +See below. + @code{load} returns @code{t} if the file loads successfully. @end defun @@ -193,6 +197,15 @@ effect can be undone if the load fails. @end defvar +@defvar load-read-function +This variable specifies an alternate expression-reading function for +@code{load} and @code{eval-region} to use instead of @code{read}. +The function should accept one argument, just as @code{read} does. + +Normally, the variable's value is @code{nil}, which means those +functions should use @code{read}. +@end defvar + To learn how @code{load} is used to build Emacs, see @ref{Building Emacs}. @node Autoload @@ -326,7 +339,6 @@ documentation string in the @file{etc/DOC} file. @xref{Building Emacs}. @node Repeated Loading -@comment node-name, next, previous, up @section Repeated Loading @cindex repeated loading