unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: emacs-devel@gnu.org
Subject: Re: Why `read-buffer` is implemented in C?
Date: Sun, 05 May 2024 19:26:56 +0300	[thread overview]
Message-ID: <86msp4cjhr.fsf@gnu.org> (raw)
In-Reply-To: <87seywmfpm.fsf@telefonica.net> (message from Óscar Fuentes on Sun, 05 May 2024 17:38:29 +0200)

> From: Óscar Fuentes <ofv@wanadoo.es>
> Date: Sun, 05 May 2024 17:38:29 +0200
> 
> While diagnosing a problem, I stumbled on read-buffer. Why is it
> implemented in C? I mean, why is it *still* implemented in C?

Because we didn't have a good enough reason to move it to Lisp.  Such
moves are not really trivial; for starters, you need to make sure that
its Lisp definition will be loaded in loadup before the first Lisp
file that uses read-buffer.  And that's just the tip of the iceberg
(e.g., I see 2 places in C that call read-buffer, so we'd need to make
sure these two places are not used before the Lisp definition is
loaded; etc. etc.).

So we only do such things when we have a good reason, whose advantages
can justify the potential trouble such changes can (and do) cause.
Otherwise, it's simply un-economical.



      reply	other threads:[~2024-05-05 16:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-05 15:38 Why `read-buffer` is implemented in C? Óscar Fuentes
2024-05-05 16:26 ` Eli Zaretskii [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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86msp4cjhr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).