From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Imports / inclusion of s.el into Emacs Date: Tue, 12 May 2020 11:56:31 +0100 Message-ID: <87mu6dctgg.fsf@gmail.com> References: <0c88192c-3c33-46ed-95cb-b4c6928016e3@default> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="91909"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) Cc: emacs-devel To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 12 12:57:10 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 1jYSb0-000Noq-6X for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 12:57:10 +0200 Original-Received: from localhost ([::1]:54134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYSaz-0000LS-7v for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 06:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSaT-0008Lf-AX for emacs-devel@gnu.org; Tue, 12 May 2020 06:56:37 -0400 Original-Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:34447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYSaS-0006Bt-CX; Tue, 12 May 2020 06:56:36 -0400 Original-Received: by mail-wr1-x441.google.com with SMTP id y3so14793232wrt.1; Tue, 12 May 2020 03:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=au5HZF9+8DtoHHXSs6uEeg/L/Q2w/zcrUzrq5Lw9Nh8=; b=Dy1a1ShnIgC7n50MtDgy/YQHa6iN+YzaPZhbEOkvg2xcYkBravYtv35qRwTiW05cP7 ts8wUCKBo/5VxT9OVAzh4W26Chbr/YQ9GRJW1UBxbHvS4xu6y8F0573soOKnvOqLpfPv D20ux0k1AZRJuO6K6FoLnUIQ10ShFHfSwNFcTh0/v+n8/+A+UwosABQK42Zrmg0zAqAs DTEGg3Qmdi+pCLvSVfT6UaBDoHp+86e7+JlBZRcJUR06rbSzwgQMTJFN6OsRw/So8DmX qhJM9M1sbq5ikQO/miih/pG2I/k6pXvgGLWPsVfUsNpanriYAxbwXMuJBFzUSBwjKCuC Tirg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=au5HZF9+8DtoHHXSs6uEeg/L/Q2w/zcrUzrq5Lw9Nh8=; b=G/Myczgz480BfQjYP9gu7EZGj6zz3qP7fdoE/yUjl1V5P30ew5HjytH9b66iLIN0g9 4ovxF7NRrAg857XjJDBOiamFUizoC/dsvr/YDMfWiLYy6ewY3uMkKd9vrYv85HQ506GG sFrlmRxbCyYR6fYWN2BURLkU4CxXTCzYhZWZ+bSF5IKOhtUz0ffQkqwWe8z9OxKz3SlN 8sRPDX1OWNQFrAsbM8wAnE8NyOLYomTw3VpGt+c118AyrdXBYcaVjw/mISLkh1v5NL04 tgqPz6GcvunRbmh2M/iR6qY3frTDifwj1TapYXRdVl2Qv1959YxVq/NMv5UpDPL+6w5t AQaQ== X-Gm-Message-State: AGi0PuadcI9mCfZx5JXa0s2O5hdBRQ54mF8E9EkQQ2ii2+bre8Bgn6al tLAkV0rSiChW2C3luDzGMaul0gUzNJY= X-Google-Smtp-Source: APiQypIhgdrwJirXA6dMhonmTHwGGmCv3ZP6s+bRIyobkfS/88C6d88nxWr2nPODTaQ+AcRhrvZtfg== X-Received: by 2002:a5d:4dc9:: with SMTP id f9mr14826745wru.407.1589280993852; Tue, 12 May 2020 03:56:33 -0700 (PDT) Original-Received: from krug ([2001:818:d820:9500:824a:171:15a:2213]) by smtp.gmail.com with ESMTPSA id a205sm22806709wmf.33.2020.05.12.03.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 03:56:32 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Mon, 11 May 2020 23:12:03 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::441; envelope-from=joaotavora@gmail.com; helo=mail-wr1-x441.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:249955 Archived-At: Richard Stallman writes: > [[[ 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. ]]] > Have people found problems in it, or have they only > criticized it for not being a real namespace system? Namespace systems are a broad concept. If one takes such things to posess a first-class object holding each individual space of names, then that feature is absent from shorthand.el. This means it's hard to do automatic checking of consistency in naming, much as the Common Lisp package facility does (and does it very well). That is what we're trading off in return for a very simple facility. 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") For more complicated cases where the library foo.el doesn't have a single prefix or renaming rule, we can use more sophisticated forms. I just provided the buffer-local-variable technique: ;; Local Variables: ;; shorthand-shorthands: (("^s-" . "magnar-string-")) ;; End: because it's practical, understood, and would be self-evident, i.e. work without much "magic". Jo=C3=A3o