From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Shorthands have landed on master Date: Tue, 28 Sep 2021 09:22:05 +0000 Message-ID: <87wnn15a2q.fsf@posteo.net> 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="26264"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Porter , Dmitry Gutov , Stefan Kangas , emacs-devel To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 11:24:23 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 1mV9Lb-0006gH-17 for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 11:24:23 +0200 Original-Received: from localhost ([::1]:41614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV9LZ-00019X-U1 for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 05:24:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV9JV-0007t6-BF for emacs-devel@gnu.org; Tue, 28 Sep 2021 05:22:13 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:44207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV9JS-0003z9-IO for emacs-devel@gnu.org; Tue, 28 Sep 2021 05:22:13 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 21EA9240029 for ; Tue, 28 Sep 2021 11:22:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632820928; bh=kkOQv+PQi9+VlaKBbCURntopA3aPOLr7jDpYQYc0Ci0=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=gbgGHXloUu6bG4T4Z8KbThLbcKRMEZlMaXKBGtbP80RvYPKwQmY4cY1dM1U5ecN5I /JkvUcZYxToGw0B+S0PfhM+3LFzBRya7GOKSGOL0oFqdesdTTTOnor+7vxVUO9sjq1 mRWCDdrkIvd0EFsKogWb3ZmmgRrYbHf61LdK6vpXkzCcivFU0UaLHzlfJ1bchsjHAf 0tv5eFNkVi09gsTbpi9ndyoZ0E2SaSb+z7lf6uCtnutmIlaeiJaKpxB/xBrjsKxU9w QbU3b+IO4MNugvCcjbaa8ZPzMrNqxL/LIEEsM7anaVhOU5DQ/pTML3lAhc1jdJiuqm IhmN+1mZqpVCQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HJYtQ679hz9rxR; Tue, 28 Sep 2021 11:22:06 +0200 (CEST) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 28 Sep 2021 10:03:01 +0100") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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:275675 Archived-At: Jo=C3=A3o T=C3=A1vora writes: >> 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 2= 7, > elisp-shorthands is simply ignored and the file is loaded normally. Yes, my idea was to use shorthands for versions greater or equal to 28.1.=20 > Jo=C3=A3o --=20 Philip Kaludercic