all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Michael Heerdegen <michael_heerdegen@web.de>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: [External] : Re: funcall of load-read-function (default nil) in elisp--eval-defun
Date: Fri, 1 Dec 2023 17:06:00 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488E63681A6F59CCB408B9DF381A@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87edg550zk.fsf@web.de>

> > 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.

Prior to Emacs 28 I don't find that variable at all,
so in those versions it's not the variable value
whose default is `read'; it's the (only) behavior
that's `read'.  But yes, in those prior versions,
function `read' is used literally where Emacs 28+
uses the variable.

It seems that (e.g. in 28.2) the variable is dynamic
and is let-bound in function `debug', in debug.el.
But it is used also in function `elisp--eval-defun'
in elisp-mode.el.  I see no place where it might get
bound to nil, but maybe that happens in some
non-vanilla code.  HTH.



      reply	other threads:[~2023-12-01 17:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Drew Adams [this message]

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=SJ0PR10MB5488E63681A6F59CCB408B9DF381A@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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.