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: Tue, 12 May 2020 23:55:28 -0400 Message-ID: References: <0c88192c-3c33-46ed-95cb-b4c6928016e3@default> <87mu6dctgg.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="78166"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Wed May 13 05:56:21 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 1jYiVJ-000KE4-Ea for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 05:56:21 +0200 Original-Received: from localhost ([::1]:38896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYiVI-0003vZ-Fx for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 23:56:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYiUV-0002cj-Lm for emacs-devel@gnu.org; Tue, 12 May 2020 23:55:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56777) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYiUV-00076i-CS; Tue, 12 May 2020 23:55:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jYiUS-0000TK-JS; Tue, 12 May 2020 23:55:28 -0400 In-Reply-To: <87mu6dctgg.fsf@gmail.com> (message from =?iso-8859-1?Q?Jo=C3?= =?iso-8859-1?Q?=A3o_T=C3=A1vora?= on Tue, 12 May 2020 11:56:31 +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:250076 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. ]]] > This means it's hard to do automatic checking of consistency in naming, That is an abstract concept, and I can understand it abstractly, but I don't know concretely what that would do. > However, if people are looking for other constructs to manage > namespaces, it very much possible to develop shorthand.el so that you > can have: > (shorthand-in-namespace FOO :as "f") What would that do? I see values as argunments but what do they mean? > ;; shorthand-shorthands: (("^s-" . "magnar-string-")) > ;; End: > because it's practical, understood, and would be self-evident, i.e. work > without much "magic". You didn't say what that call means, but I was able to figure it out. I think this feature is good when used in a sane way, but we need some control to make sure people don't use it in absurd ways. Also, when a file uses magnarstring.el, it should not have to duplicate the renamings of magnarstring.el. It should be able to say, "This refers to magnarstring.el". Also, the renamings in the using program should only apply to the names specified somehow by magnarstring.el. If that file happens to contain a symbol named s-means-stop, that shouldn't get renamed to magnarstring-means-stop. I think this calls for magnarstring.el to contain a list of the individual renamings. When you edit the file you should be able to run a command that would update that list in the file. Then files which use magnarstring.el should be able to snarf that list out of magnarstring.el and apply those specific renamings. WDYT? -- 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)