From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: transient Date: Wed, 29 Apr 2020 22:28:15 -0400 Message-ID: References: <87368npxw4.fsf@bernoul.li> <87v9ljo5d0.fsf@bernoul.li> <87ftcnxu5m.fsf@bernoul.li> <83y2qezlpd.fsf@gnu.org> <58CEF49D-6111-4CEC-BCEB-F46E87DE0146@gmail.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2479"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jonas@bernoul.li, emacs-devel@gnu.org, philippe.vaucher@gmail.com, monnier@iro.umontreal.ca, adam@alphapapa.net, eliz@gnu.org, kyle@kyleam.com To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 30 04:29:04 2020 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 1jTywi-0000WK-7f for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Apr 2020 04:29:04 +0200 Original-Received: from localhost ([::1]:54350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTywh-0002RM-8j for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 22:29:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39936) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTyw0-0001NU-8j for emacs-devel@gnu.org; Wed, 29 Apr 2020 22:28:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41189) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTyvy-00052Q-3D; Wed, 29 Apr 2020 22:28:18 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jTyvv-0006wl-OJ; Wed, 29 Apr 2020 22:28:16 -0400 In-Reply-To: <58CEF49D-6111-4CEC-BCEB-F46E87DE0146@gmail.com> (message from Yuan Fu on Wed, 29 Apr 2020 10:17:50 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:248199 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. ]]] > It would be nice to organize all the file-related functions > better. Currently all the file-xx, file-name-xx, directory-xx > names are not the easiest to find. What is the difficulty? Doesn't M-x apropos RET ^file RET do it? There may be some important context I can't get from your message. > (defun file-content (file) > (with-temp-buffer > (insert-file-contents file) > (buffer-substring-no-properties))) I think he name should be file-contents, plural. The text in the file is its "contents". If people often want this, we can certainly add it. It is just a question of how often programmers want it. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)