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: Imports / inclusion of s.el into Emacs Date: Fri, 01 May 2020 22:23:44 -0400 Message-ID: References: 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="106554"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Philippe Vaucher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 04:24:15 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 1jUhp8-000RcB-UN for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 04:24:14 +0200 Original-Received: from localhost ([::1]:33750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUhp7-0000D1-W1 for ged-emacs-devel@m.gmane-mx.org; Fri, 01 May 2020 22:24:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUhof-00081p-SI for emacs-devel@gnu.org; Fri, 01 May 2020 22:23:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43895) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUhof-0005Lr-Id; Fri, 01 May 2020 22:23:45 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jUhoe-0005vE-KC; Fri, 01 May 2020 22:23:44 -0400 In-Reply-To: (message from Philippe Vaucher on Fri, 1 May 2020 16:56:13 +0200) 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:248365 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. ]]] > 1. Check wether there are existing emacs `*-string-* functions that'd > be aliased to start with `string-` and make a patch for that. That is, > already unify the existing Emacs string library if needed. To define some new 'string-' functions to aid discoverability could be good in some cases. But we should judge properly which cases could be improved this way. I would be against renaming 'substring' to start with 'string'. Renaming 'concat' seems also like spurious inconvenience in the name of rigidity -- the Lisp equivalent of bureaucratese. In general, I think that very basic and commonly used functions should be left alone. Beginners will learn their names anyway. The more obscure the function, the more attractive renaming becomes. (I understand that we might never deprecate the old names, but I still consider it in spirit a kind of renaming.) > 2. Decide of a set of function that we'd "import" from s.el and > namespace them under the `string-` namespace. For example, `s-prepend` > would become `string-prepend`. I am not familiar with s.el. I gather it defines some functions to do generally useful things on strings. Is that right> What does 's-prepend' do? And how would we do it in Emacs Lisp now? -- 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)