diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-06-05 12:23:13 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-06-05 12:23:13 +0000 |
commit | 7090135ad270c767d3e15413175810c20148ac4a (patch) | |
tree | 68b7ecde183e08f4d00f5c3a980caa46d3e2f0c9 /lispref/loading.texi | |
parent | b62c7261765c63564dbb2093d8db85ba481b14f1 (diff) | |
download | emacs-7090135ad270c767d3e15413175810c20148ac4a.tar.gz |
*** empty log message ***
Diffstat (limited to 'lispref/loading.texi')
-rw-r--r-- | lispref/loading.texi | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lispref/loading.texi b/lispref/loading.texi index 8254107e710..645ada83976 100644 --- a/lispref/loading.texi +++ b/lispref/loading.texi @@ -101,6 +101,10 @@ error @code{file-error} (with @samp{Cannot open load file @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 @@ file, and it is @code{nil} otherwise. This is how @code{defun} and 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 @@ convention used only in the preloaded Lisp files such as 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 |