[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: funcall of load-read-function (default nil) in elisp--eval-defun
From: |
Michael Heerdegen |
Subject: |
Re: funcall of load-read-function (default nil) in elisp--eval-defun |
Date: |
Fri, 01 Dec 2023 17:41:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Robert Weiner <rsw@gnu.org> writes:
> I see this line in elisp--eval-defun at least Emacs 28 - 30 (pre-release):
>
> (setq form (funcall load-read-function (current-buffer)))
>
> The default for load-read-function is nil, so it can't be called as a
> function by default.
The default has been `read' since Emacs 25.1.
> The value for me is indeed nil and is triggering an error for me when
> trying to evaluate an ert-deftest expression.
I don't see a place in Emacs where this variable is set to nil. Why
could it be bound to nil for you?
Michael.