unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Emanuel Berg <incal@dataswamp.org>
Cc: emacs-devel@gnu.org
Subject: Re: another day of cutting edge Elisp (read from a file to a string)
Date: Sat, 14 Sep 2024 22:33:01 -0400	[thread overview]
Message-ID: <E1spf4P-0005YQ-EA@fencepost.gnu.org> (raw)
In-Reply-To: <87wmjhpfql.fsf@dataswamp.org> (message from Emanuel Berg on Thu,  12 Sep 2024 08:07:14 +0200)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

I never wrote a function to read a file's contents into a string
because (1) it would not often be useful and (2) Emacs is bloated
already.  If we added functions just because they would make sense, we
could add a lot of functions, but that usually would not make Emacs
better.

The reason it is not often useful is that usually when you read a file
having the contents in a buffer makes it convenient to operate on them.


-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





      parent reply	other threads:[~2024-09-15  2:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-12  6:07 another day of cutting edge Elisp (read from a file to a string) Emanuel Berg
2024-09-12  7:09 ` is OO a model that makes models? (was: Re: another day of cutting edge Elisp (read from a file to a string)) Emanuel Berg
2024-09-15  2:33 ` Richard Stallman [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=E1spf4P-0005YQ-EA@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=incal@dataswamp.org \
    /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).