From: Robert Weiner <rsw@gnu.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: funcall of load-read-function (default nil) in elisp--eval-defun
Date: Fri, 1 Dec 2023 11:47:35 +0000 [thread overview]
Message-ID: <CA+OMD9jSKPtApVUJ+jh8NJOP3YdKc83XP8XX-oksrrDp0Pht5w@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2023-12-01 11:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-01 11:47 Robert Weiner [this message]
2023-12-01 16:41 ` funcall of load-read-function (default nil) in elisp--eval-defun Michael Heerdegen via Emacs development discussions.
2023-12-01 17:06 ` [External] : " Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+OMD9jSKPtApVUJ+jh8NJOP3YdKc83XP8XX-oksrrDp0Pht5w@mail.gmail.com \
--to=rsw@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rswgnu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.