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: Sat, 23 May 2020 23:52:42 -0400 Message-ID: References: <0c88192c-3c33-46ed-95cb-b4c6928016e3@default> <87mu6dctgg.fsf@gmail.com> <87a72dge3u.fsf@alphapapa.net> <87y2px9c43.fsf@gmail.com> <87mu6450zf.fsf@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="60022"; mail-complaints-to="usenet@ciao.gmane.io" Cc: adam@alphapapa.net, rms@gnu.org, emacs-devel@gnu.org To: =?iso-8859-1?Q?Jo=C3=A3o_T=C3=A1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 24 05:53:25 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 1jchhV-000FXl-6u for ged-emacs-devel@m.gmane-mx.org; Sun, 24 May 2020 05:53:25 +0200 Original-Received: from localhost ([::1]:40904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jchhU-0001xx-7U for ged-emacs-devel@m.gmane-mx.org; Sat, 23 May 2020 23:53:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jchgw-0001EL-RS for emacs-devel@gnu.org; Sat, 23 May 2020 23:52:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54521) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jchgw-0001JB-36; Sat, 23 May 2020 23:52:50 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jchgo-0000Jr-OM; Sat, 23 May 2020 23:52:42 -0400 In-Reply-To: <87mu6450zf.fsf@gmail.com> (message from =?iso-8859-1?Q?Jo=C3?= =?iso-8859-1?Q?=A3o_T=C3=A1vora?= on Mon, 18 May 2020 23:31:32 +0100) 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:251298 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. ]]] Please forgive me for taking so long to respond. In late October email started was pouring in on me, and I am now 700 messages backlogged. I just saw your message today, because I decided to look for mail from you. > > The s.el file can include a precise list of the necessary renamings > > for callers to use. This woud be updated by scanning magnars.el. > I don't understand this particular bit , the "precise list of necessary > renamings"). The idea is that (require 's) in file foo.el specifies renamings for the rest of foo.el. The question here is precisely how to specify them. > Thus, when compiling user.el, the byte-compiler will evaluate some > forms, including top-level require forms. After it has evaluated the > first line > (require 's) > It has loaded the file s.el[c]. That, in turn will have `require`d > magnars.el Yes. and set up the `s-` -> `magnars-` translation for the current > compilation session (probably in a buffer-local version of the > shorthand-shorthands variable). That is the part I want to change. The current shorthands.el idea is to specify renamings with a pattern (or multiple patterns) -- for instance, "rename everything that starts with s- to start with magnars- instead." That would work, but any change in shorthand.el could change the list of symbols to be renamed. Such changes could get in without being noticed. So I am thinking that s.el should specify a list of specific symbol renamings: (("s-prepend" . magnars-prepend) ("s-append" . magnars-append) ("s-concat" . magnars-concat) ...) WDYT? BTW, instead of magnars.el, I suggest the name magnar-string.el. Its meaning will be clearer. -- 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)