From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: another day of cutting edge Elisp (read from a file to a string) Date: Sat, 14 Sep 2024 22:33:01 -0400 Message-ID: References: <87wmjhpfql.fsf@dataswamp.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6593"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Emanuel Berg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 15 04:33:45 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1spf57-0001Zl-C8 for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Sep 2024 04:33:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spf4S-0003R9-Oq; Sat, 14 Sep 2024 22:33:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spf4Q-0003Qm-Tx for emacs-devel@gnu.org; Sat, 14 Sep 2024 22:33:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spf4P-0002dI-MJ; Sat, 14 Sep 2024 22:33:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=2RzjovkYnUIQxOH8Wc2NKvpF9EZiSXR7pHpxBj6otbc=; b=Li3dGp+0uV4R Q6qcxuabdIJw+k+nKwHLfKkHg1UaEBfED5rnH5zvD9FJkbBLyBJhfubabepXBOmY/m5JgmoklYDnX PpOduYM04Nq0Gcv0VFqVNuz21vM8IefaYRdJ/3/f8tLOKndHdCnWLxW038V1bcYlpHa51IfkvPW+a 6X/XhpxvROkO4Reg2M1LGirUpiilKIBnlstudYO8wRTFHbLvAVBQ5E9JHGEIpYwTkg9KMWvxyT7cd tRTiViLeneM0tSrnKyenq1fsiXHJIhq1vdcRIOoyX0IAHaNINIqAa6ZTfOLc8oSCXPuxhGWbgxEyj L3n9nO77e7Y2IBw1IGk6Kw==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1spf4P-0005YQ-EA; Sat, 14 Sep 2024 22:33:01 -0400 In-Reply-To: <87wmjhpfql.fsf@dataswamp.org> (message from Emanuel Berg on Thu, 12 Sep 2024 08:07:14 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323627 Archived-At: [[[ 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)