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: Better way to require with shorthands/renamed symbols Date: Mon, 27 Sep 2021 17:59:34 +0100 Message-ID: References: <20210927003203.15806.29864@vcs0.savannah.gnu.org> <20210927003205.EF26620A5E@vcs0.savannah.gnu.org> <8735pqryt2.fsf@gmail.com> <0b213c21-aacb-fe9b-11c8-0c4e777fe14d@yandex.ru> <87pmsuqi5o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20488"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Porter , emacs-devel , Dmitry Gutov To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 27 19:07:09 2021 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 1mUu5s-00056j-Jj for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Sep 2021 19:07:08 +0200 Original-Received: from localhost ([::1]:56754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUu5r-0006vX-F8 for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Sep 2021 13:07:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUtyo-00081M-7s for emacs-devel@gnu.org; Mon, 27 Sep 2021 12:59:50 -0400 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:46613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUtyl-0000EN-8S for emacs-devel@gnu.org; Mon, 27 Sep 2021 12:59:49 -0400 Original-Received: by mail-pl1-x635.google.com with SMTP id w11so12169835plz.13 for ; Mon, 27 Sep 2021 09:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Xb6I/XAUbfCfD686pH1rf2HiCkFDKE96TrOACTyJrw8=; b=aWGr748+vA1hOvqm6gMhfThNYDhIROQ5D5oFIQwPS5xyZHmizb1H0ZjFW+w2bLZeQW xvoWUL31/rGuM4dB6nHkOBESbohx78rq6hjkkYqSNYIVu6n0V7OqNK/i/ES3D8AC5IS7 9NozBxyDHYWb+Ihs0jf22RAQco92UrFznMKfS2oFS0xbW9ILgf4DD3HKfIntpW+tRmen P0xc87FF0pePBwAs1nYeqeoSDQ4JdX23Q/yuEBs4OmUu1j8dxJRg+ZsHfAsiyjJa9S5m yPPTZ2JYSzXM6BjiOO2MQzp+wMrAsSP69oJ/fDcZQpge1Cv+8iKYwAJXsRZAJiAeqgO3 ah2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Xb6I/XAUbfCfD686pH1rf2HiCkFDKE96TrOACTyJrw8=; b=U3wMkNsPDX40INFfttGlonWIQFaoxKDgfa4eAB6Vpah8T/PJsdwF0Kx1JU5ZpqNMmq xVS25DOGQi5hV7hE9w2vnHFSGHScmteYIyD+aJIp3ZmoftwnHUXYN4U4frP5hPrzmB/5 j+7Z5v4Ht5bCSJiEp2oK9BJ49fAxDfuKs6nP8ljeZWR+l+4IBqa6n89xkNGL7YuQQvDo 4Klj2VYaRu6vKdc6xZvNmjRE8sAIa0kkz/JZUPxgPyDjrEat95mtG/6pA2CYk8GT6Jx5 GMiczazLMmA69LxC56ljPc8yS7dvcbR7NqLtuz1212rUth0vixwqlBVvEInvgUT3xjr4 tcjA== X-Gm-Message-State: AOAM530alRtzUnwvC79Ryymups3IY3EqdXTITatAdfZQxxuoMZDlZ1iz ch2g9oEOXUXagQDTHGNnFI2c+InVOSPWY3fcjOM= X-Google-Smtp-Source: ABdhPJzglQjms/oZH3kuxyL/zRNyJCc5OSLDLc3RZP6AcBby+No0Jvga2dGm+68+oyBIECfDGJ4ZS0cwNQvP5ismz1c= X-Received: by 2002:a17:902:edc3:b0:13c:957d:63fa with SMTP id q3-20020a170902edc300b0013c957d63famr824942plk.79.1632761985678; Mon, 27 Sep 2021 09:59:45 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=joaotavora@gmail.com; helo=mail-pl1-x635.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.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:275598 Archived-At: On Mon, Sep 27, 2021 at 4:05 PM Stefan Kangas wrot= e: > > [...] Maybe we can somehoe have file-local > > variables in other points of the file? > > Would that suffice for you and Stefan now? > Sure, if we can figure out how to do that in a clean way. I don't think it's particularly hard to do cleanly. Just think of how file-local variables are already supported in the first line of a file. > Otherwise, we are probably better off just leaving things as they are, > rather than complicating things just for the sake of it. Yes, "for the sake of it" is obviously bad. But solving particular problems that are well described is fine with me. For example, I'd like to be able to activate shorthands in certain parts of the buffer, just like one switches to a package in Common Lisp. But I'm a CL guy and like packages. On this topic, it has come to my attention that some people are sore or frustrated about how this feature has somehow "defeated" their preferred idea. I think that doesn't make sense. If those ideas aren't happening it is not because of my work. I hope people come forward and state what it is they would like to do namespacing-wise in Elisp. And then help everyone else think if it is possible to actually implement it without impacting the existing tooling (too much). Ideally, a prototype of this hypothetical feature be made. > Maybe it's already fine as it is, given the scope of the feature. The Shorthands feature doesn't have any particular "scope", IMO. It depends on the use you want to give it. I believe it will be used for importing `s.el` and `s.el`-dependent libraries into Emacs or *-ELPA somehow. That's one application. Personally, I plan on using it in newer Emacs28-only versions of my packages: i hate typing/reading long prefixes. Maybe a clean Elisp version can be developed for older Emacsen, I dunno (the first version I did was Elisp only, but I don't remember if it worked fully like this one). Jo=C3=A3o