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: Shorthands have landed on master Date: Tue, 28 Sep 2021 10:03:01 +0100 Message-ID: References: <20210927003203.15806.29864@vcs0.savannah.gnu.org> <20210927003205.EF26620A5E@vcs0.savannah.gnu.org> <87y27iqiun.fsf_-_@gmail.com> <87wnn1wsla.fsf@posteo.net> <871r596uih.fsf@posteo.net> 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="7441"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Porter , Dmitry Gutov , Stefan Kangas , emacs-devel To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 11:04:57 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 1mV92n-0001gG-Cm for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 11:04:57 +0200 Original-Received: from localhost ([::1]:44642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV92l-0007qJ-NA for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 05:04:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV91D-0005ae-8I for emacs-devel@gnu.org; Tue, 28 Sep 2021 05:03:19 -0400 Original-Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:46672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mV915-0004jS-Lc for emacs-devel@gnu.org; Tue, 28 Sep 2021 05:03:17 -0400 Original-Received: by mail-pf1-x42a.google.com with SMTP id u7so522187pfg.13 for ; Tue, 28 Sep 2021 02:03:11 -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=pwxrt9J7FEJeag+S05FRRAxRk2X9VfRkzcbXCEoGt48=; b=HwB/OPF9I4z09X3Jn/mvOK8eAI9i0wJfKCHcvcARMN11n4xJ31jWK0ctbHNAT4c8NR rBXDUSQg4uupVb5EQ/0FMn8UrgUu2Gi05HyUgg4xAgh6SBSvbg9ByhwBscK8qyPNVVNS TS98W1PBn6WOpipyPN/0SpsEillIYKYbtXAw68/nqy6nnG0TwXcBqtz9YDL0OWhfkmn7 QQpDyjYkae+lhUdoeF2Sc85V94MgrE/pNOhaAYvpl1hKG0zIblZC2NWBnW0og4bJe+mm 1KG8J9loENMuzWVLLMa1VrLmGRZk9yWxz6XSpgNNmSw8R0LeUFt+/44Dcaw2o+9n28tA +f/A== 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=pwxrt9J7FEJeag+S05FRRAxRk2X9VfRkzcbXCEoGt48=; b=f1PsbzDfnQBV+Qkj55IBt5itvLbgLKH/INl/W3+KpNiqBZpegmpEomyfj0eUpcFs4s P3pQI8SZh3ColeSyQu1VXgWPOi6beh8BhyU7eI8RDsicy5TOmO0R62yjnFb+S9nMOlLR fw7SQRVetMDxCSnmnP5K9j2so8UestiULT43+4hOSn2XR1kMMLbBXd1vzN3xuwHLk/hO pBd+8XoVQxpXGhReK2PNBXsR3EIWjh/PdJlygiOahRYPTByAbiwI4F0pJiznPfm2WxP7 C79Cpk+MIIIrGB7DvP6GkinHFAvRbVVI3E3EZw/nbbA4y7nNjc0AbA3jaCjDGTht0uzS w6EQ== X-Gm-Message-State: AOAM5302zyx9WBWK84dNiGINcGXLndSRTQniEGu8qczuG3s4OGtZ0fEk fAWcEYc6FfHz9L7vo1/xeOnnKb7EO5TptMcXC2M= X-Google-Smtp-Source: ABdhPJwOnVrWcK92xA92Dl++F8+A6OZXI2sZBwURHY3NoIq8ML1cI4o/WIlR1oLJQLwTON+S3X/HubcVMK7hQHw8jmk= X-Received: by 2002:a63:2cce:: with SMTP id s197mr3530345pgs.45.1632819790041; Tue, 28 Sep 2021 02:03:10 -0700 (PDT) In-Reply-To: <871r596uih.fsf@posteo.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=joaotavora@gmail.com; helo=mail-pf1-x42a.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:275672 Archived-At: On Tue, Sep 28, 2021 at 8:15 AM Philip Kaludercic wrot= e: > > Jo=C3=A3o T=C3=A1vora writes: > > > On Mon, Sep 27, 2021 at 11:40 PM Philip Kaludercic = wrote: > I see. Do you think it would make sense to use predefined shorthand > groups, in case someone *would* want to use cl-lib without the prefix? Yes, I do think that makes sense. ...meaning that drawbacks aren't immediately visible to me right now :-) Since elisp-shorthands is a file-local variable, I think it allows (eval) specs. Perhaps you can try with that, for now? I don't think it'd be hard to add better support for such predefined groups of shorthands. > This was in reference to the compat.el discussion from a few days > ago. It was mentioned that shorthands might provide an alternative to > aliasing function definitions. But this doesn't make much sense, if a > prefix has to be used, short or long: I want to call > (macroexp-file-name), not (co-macroexp-file-name), (~macroexp-file-name) > or (compat--macroexp-file-name) to provide transparent compatibility. If I understand this right, then I think you may solve it similarly to the cl- situation. But you understand that, for the moment, shorthands are only supported in Emacs 28, right? Not sure where (in which versions) the library you're intending to write would be loaded. If that library is loaded in Emacs 27, elisp-shorthands is simply ignored and the file is loaded normally. Jo=C3=A3o