all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* funcall of load-read-function (default nil) in elisp--eval-defun
@ 2023-12-01 11:47 Robert Weiner
  2023-12-01 16:41 ` Michael Heerdegen via Emacs development discussions.
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Weiner @ 2023-12-01 11:47 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

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 value for me is indeed nil and is triggering an
error for me when trying to evaluate an ert-deftest expression.

How does this work?  I don't see the value of load-read-function set
anywhere else in elisp-mode.el.  I see it set in debug.el and edebug.el but
not when doing a normal defun eval.

Thanks,

rsw

[-- Attachment #2: Type: text/html, Size: 1411 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-01 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-01 11:47 funcall of load-read-function (default nil) in elisp--eval-defun Robert Weiner
2023-12-01 16:41 ` Michael Heerdegen via Emacs development discussions.
2023-12-01 17:06   ` [External] : " Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.