From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Help sought understanding shorthands wrt modules/packages Date: Sun, 30 Oct 2022 14:48:20 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32488"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 30 14:49:19 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 1op8gh-0008EE-2w for ged-emacs-devel@m.gmane-mx.org; Sun, 30 Oct 2022 14:49:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1op8fs-0001vA-DK; Sun, 30 Oct 2022 09:48:28 -0400 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 1op8fq-0001uM-TT for emacs-devel@gnu.org; Sun, 30 Oct 2022 09:48:26 -0400 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1op8fo-0006OU-D9 for emacs-devel@gnu.org; Sun, 30 Oct 2022 09:48:25 -0400 Original-Received: by mail-ej1-x630.google.com with SMTP id q9so23659659ejd.0 for ; Sun, 30 Oct 2022 06:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=wtlfyelqSyi7f2/7gWeb4ul+bEeeeqhbKxbxWYdfEVg=; b=guW8T8I92E3x4yv7tr+BH71SByk2rZoXemKsJgh9ZHDXD6LEwXXY+kTCiImgzdRD7c fly1uWldaPORIQK1I4ODSqUzvv5qnmKJ52gNzPT76jr4Dgt04l4tc5YUm/KGGhfoRzOY 14p695cPtgpMjRKejK3jxU9UZFeRzWLuir8cWseMveMa1vLu5vpGdateMvXctLHisZBl P5aQehO/QLU2sjq6p3igY9hypeHWB5Whyk4x1WwBHpwVdpapsF+ZtUwdz7xarDUZvblr DoYRNyeWTyn7VcbVP21SO2ji8ClGKqbj7R8LcVCMZIlb1b2JssDB4QmCFQxEzLCn3uNh EC5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wtlfyelqSyi7f2/7gWeb4ul+bEeeeqhbKxbxWYdfEVg=; b=KYSVBv5P0kO44GCkso/ze4RWR1OWNrKiFxhU0hD4Px8Y43Ghno1nSCsF0ce9exesTU kDiWPJhQOZMquYzqmtWTham/DGzbwlPnmLw4lHD0v6sEvd0dBzXvCbFlE3GSuiSPfWPf g2YHK+B5MZfkJwKjNfetvmjX+L5F79PZCdfTW9ZP61F5wLWfAqPDNHckuWYBDtN2rA/J hqPgoMo3nYohzwUxa7ccEpGn5mUzd0EJmZJcqJsBPW+V9AXnVOOrW6r4d6fO5zFq98Mu uO9CXoVmcGKv0TyQP7EUhT3M/DVxYa9jeUG1RarIZGANwoYbHSQOiNVGxByJfR1MlJNH 2l2Q== X-Gm-Message-State: ACrzQf0uz8hjr7ebCnihdF5iS6/WgVa5m0HpznvknKTa65lwuoAvMgum ulxCww2jIYwMPZiF716EfxDnDHD2kpo= X-Google-Smtp-Source: AMsMyM71iBVcV5i5lsi9f+UlKZ0dOxfj+3yijSO9T7IIq6lclAaB+roqvHZ7D0UkXWeLUbHmenyRLg== X-Received: by 2002:a17:906:5d11:b0:7ad:4a55:a3fe with SMTP id g17-20020a1709065d1100b007ad4a55a3femr8652115ejt.185.1667137702314; Sun, 30 Oct 2022 06:48:22 -0700 (PDT) Original-Received: from Mini.fritz.box (p54b0c806.dip0.t-ipconnect.de. [84.176.200.6]) by smtp.gmail.com with ESMTPSA id d8-20020a05640208c800b00461c375d88csm2052913edz.97.2022.10.30.06.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Oct 2022 06:48:21 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 30 Oct 2022 08:50:08 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x630.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, 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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298813 Archived-At: Stefan Monnier writes: >> The reason why I think shorthands don't address that problem is pretty >> simple, according to me again: The underlying one obarray can only >> contain one name per symbol at a time. So, whatever name lands in the > > I thought CL packages had the same problem: you can't (globally) have > two packages with the same name. That's true, in this case that's a problem with package names. I guess everything having a name can conflict with the same name being used by someone else. But, - You can handle it with rename-package. I've used that in CMUCL, while working its CLOS implementation), to load two versions of PCL in the same image at the same time. - There is an extension "hierarchical packages" which gives packages a tree structure. It's more or less like with Java packages. An implementation on top of standard packages isn't very hard. https://cmucl.org/docs/cmu-user/html/Introduction-To-Hierarchical-Packages.html > Stefan "Trying hard not to get pulled into this discussion" C'mon :-)