From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Help sought understanding shorthands wrt modules/packages Date: Tue, 8 Nov 2022 09:54:34 +0000 Message-ID: References: <651bbe21-f179-730a-4f10-7dc6d27055ea@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b99bbd05ecf28757" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20691"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , Andrea Corallo , Eli Zaretskii , emacs-devel To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 08 10:55:24 2022 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 1osLKF-0005A8-Mc for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Nov 2022 10:55:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osLJm-0007Y3-A4; Tue, 08 Nov 2022 04:54:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osLJj-0007Xk-A7 for emacs-devel@gnu.org; Tue, 08 Nov 2022 04:54:51 -0500 Original-Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osLJg-0002TW-SP; Tue, 08 Nov 2022 04:54:50 -0500 Original-Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-13c2cfd1126so15670255fac.10; Tue, 08 Nov 2022 01:54:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xBda0qGow9KCAo3XNRNtbGeQdZiRtSoZ81bg7STiQZg=; b=njDFOzs74LkNN/a6ELDpqAixMDuv7/TYMZ3Irs2SQBvJBlpKkdvibFLV5xfUnKO+53 wa3uo1CUkHmfdoiGvveuMoC8Ruin5YDhdXMkRdzJIDaF8nF+sev1QNIE6z9VtAiUITjL KJjNTwRCPhD34fNE47SQbbYFCh8Yced9bmcX+yULeVVetTH9sQ9q+O1DOJq6kx2hxeri 06+sSO0+RhJjY8jS6k/ZCd/SC9YKajgcWe6aXa5aObqiwQqpIfUJmY0ptxLvQtQAtLJm pKu82l9vTZTOVfI9Y0NtZ6LtiA5chGAQGgRp44SInSQswdTpDj9BrPi5XnmDABtU3MOT lN7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xBda0qGow9KCAo3XNRNtbGeQdZiRtSoZ81bg7STiQZg=; b=tMDV08bk52rFCPzoguVrkeP7BEa9a3h2fgBRCvtOGfjWwLBWoy7FGODQJuMjaMWd62 Wn+Jb+x3tUbtUvotMM9fVOhUdw3tsGA/m8Pzj+E2AzxTllOdVm1DJaw9zIb5Xs0SFIVf KYhIK/m9JLJJlW+wC8nVxX3FUf6um75tyV+Dx1IBL7663grxzW1GoivxU2s9O3zJn10h mXKn8mkbjA5Z1CWWmU3oZWNCqB2b567ifmQlB+4f4NvIeGkA7aYEAGOLnmVXp0Z9KEjR mTct2kYY8N2LXBphVzZMjrjAhI/PnIPOj+wCwqJ12XZcBpNWgMHgMRKu2u9JVhRoX/vR fG8A== X-Gm-Message-State: ACrzQf3wkDmtixHn3EMyv0TSyr5tb2hXVK6nR373BrLErTGZnArNrwFL TMwhI4+c6iz1GX10vFwFPScN4hONGic2PncCFN0= X-Google-Smtp-Source: AMsMyM6stIEij4r7PLvGgdyNqEIuPx+zdBmCPnASIO3gu9AS87/ZmNMGKyn7MC6WNtiBjQBGe74dEAFo6H9cnLWPxgM= X-Received: by 2002:a05:6870:e242:b0:13b:d561:ad02 with SMTP id d2-20020a056870e24200b0013bd561ad02mr33007323oac.215.1667901286880; Tue, 08 Nov 2022 01:54:46 -0800 (PST) In-Reply-To: <651bbe21-f179-730a-4f10-7dc6d27055ea@gmail.com> Received-SPF: pass client-ip=2001:4860:4864:20::2a; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299327 Archived-At: --000000000000b99bbd05ecf28757 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Nov 8, 2022, 06:20 Gerd M=C3=B6llmann wr= ote: > . > > BTW, in light of what I read now on emacs-devel in various threads, > I take my questions about the design of shorthands and there use instead > of modules/packages back, because there is no design. > I find this characterization a bit unfair. There was and is a design, a fairly small one and one aimed primarily at solving a particular problem, which wouldn't be possible with CL packages. You can't introduce CL packages into an existing library file without significantly changing it and without breaking compatibility to earlier versions of Emacs. Nevertheless, shorthands are not a replacement for CL packages, as I've explained before. They were meant to plug a specific hole regarding namespace pollution derived from packages with very short (and commonly desired) prefixes. That was the main goal. In the process, shorthands also offer a fraction of the programming convenience of CL packages. It's a very, very small fraction, but given that after many years of discussion there was still nothing in Emacs and now there is something, i count that as an improvement of infinite%. > > --000000000000b99bbd05ecf28757 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Nov 8, 2022, 06:20 Gerd M=C3=B6llmann <gerd.moellmann@gmail.com> wrote:
=
.

BTW, in light of what I read now on emacs-devel in various threads,
I take my questions about the design of shorthands and there use instead of modules/packages back, because there is no design.

I find this characteri= zation a bit unfair. There was and is a design, a fairly small one and one = aimed primarily at solving a particular problem, which wouldn't be poss= ible with CL packages. You can't introduce CL packages into an existing= library file without significantly changing it and without breaking compat= ibility to earlier versions of Emacs.

Nevertheless, shorthands are not a replacement for CL package= s, as I've explained before.=C2=A0 They were meant to plug a specific h= ole regarding namespace pollution derived from packages with very short (an= d commonly desired) prefixes.=C2=A0 That was the main goal. In the process,= shorthands also offer a fraction of the programming convenience of CL pack= ages. It's a very, very small fraction, but given that after many years= of discussion there was still nothing in Emacs and now there is something,= i count that as an improvement of infinite%.

=
--000000000000b99bbd05ecf28757--