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: Mon, 27 Sep 2021 23:58:39 +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> 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="16140"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Porter , emacs-devel , Stefan Kangas , Dmitry Gutov To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 00:59:40 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 1mUzb2-0003zk-59 for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 00:59:40 +0200 Original-Received: from localhost ([::1]:58556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUzb1-0006Bd-4E for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Sep 2021 18:59:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUzaJ-0005UA-8H for emacs-devel@gnu.org; Mon, 27 Sep 2021 18:58:56 -0400 Original-Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:37546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUzaG-0002Rr-IZ for emacs-devel@gnu.org; Mon, 27 Sep 2021 18:58:54 -0400 Original-Received: by mail-pl1-x632.google.com with SMTP id j14so12840037plx.4 for ; Mon, 27 Sep 2021 15:58:52 -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=dVKIYCa0XL4aY0SSa46ehkX+GmOkpI7xBpC5iBug488=; b=lIC0DXVsw3L51M1P9cabgfxrlU55tMH3BPzALSpCC8XW0EYJWPhS6GPBzm6EzfNp6U ON6EELDMACVdiTq893o8fNmSv68bEd7xQpzmcSYhTg+PD3oZFyoijWWY6LCwilHVAq/q /Rjp9oPt0dlJNzl5i3hmvIE9ovuRwolG5Nps8RMiAvWB119cYuNAxLWSGLCTyLmPRRnD mS0MhiqkQ91/dHaE2dGvMswXeQ0BlLOJj8nr+8BQfDB2GegdxxvXpVARplIlw1vT2oMY P0is4FjsrNNsFDjda/Clc3rr5Jljb57LfgYHecMCnQX7EE8XKkbN4SMpF1dIlqwfxQz0 SmCQ== 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=dVKIYCa0XL4aY0SSa46ehkX+GmOkpI7xBpC5iBug488=; b=z4wRU9wZOKbHqE7GIp+Uz61/SHmohwGHgYUUvEE7hhZ4XjiANaGGmdBD/djP2Op7L5 PE4a3BWDSo/pUDPSeFw41T/PCJiUlnTGu0xvupZp5Hw/9Tade96JMhETVbCHG3y3fZxM JS5t2sq3vpcvRKOhrZYetckiEtgXslVzZbrjF3FGFcs5D8IVhYlVA6Goojqq8suF/JT3 A1d4fgzm0QLrygwEsnWa5ftkarwTiGl8PRtKQla4ML046soM6wiE7FvenC5QJsa6WEH/ PzSBChnKWrxJbiu5jnVLBRgni0bUM/Ku/GDphXo5GqGYpUEJnYDT3DjfwWo+NFQVsa+p QfSw== X-Gm-Message-State: AOAM530Afxt+GSo4PG61Q0qV/r2xH4YLRuOkZUcSKJbEGbMY490wBw6N iYCe8Pw8UyJg1WQ6yvXyNwZPdxGOQoymobCWPTM= X-Google-Smtp-Source: ABdhPJwrE9oWQuQnk2Fx+K0nzMOeYle5O3zK+Fg8vZaMvtjWni+4fsj95PKZFPbz+FAweH7BbcmPg9qXWDyL6LUByLY= X-Received: by 2002:a17:90a:5a86:: with SMTP id n6mr1715445pji.3.1632783530937; Mon, 27 Sep 2021 15:58:50 -0700 (PDT) In-Reply-To: <87wnn1wsla.fsf@posteo.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=joaotavora@gmail.com; helo=mail-pl1-x632.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:275626 Archived-At: On Mon, Sep 27, 2021 at 11:40 PM Philip Kaludercic wro= te: > > Jo=C3=A3o T=C3=A1vora writes: > > > Hello all. > > > > Anyway, as you may have noticed, "Shorthands" have landed on master. > > Please check out the NEWS entry and the manual section on "Shorthands". > > > > For the impatient, I leave with with a tiny animated gif. > > From what I see, elisp-shorthands only allows a shorter prefix to be > mapped to a longer prefix, right? So this doesn't allow me to use cl-lib > without the cl- prefix, You need to have _some_ prefix. It cannot be of 0 length. Best you can do is '-loop' and '-destructuring-bind', for example. In fact, I lie. You _can_ map 'loop' to 'cl-loop' explicitly. 'loop' is the shorthand. 'cl-loop' is still the symbol. But you have to do it symbol by symbol. That's because I've purposely turned off "freer" renamings in favor of prefixes, simplicity and read speed. But they are not impossible. > or remove the compat-- prefix from compatibility > functions? It's too late in the day for me to understand what you mean by "remove" here :-) You must first understand what shorthands are: they are merely file-local aliases to symbols which keep their full names. Does this help in answering your question? If it doesn't, provide a toy example with files and code in it, and illustrate clearly what you would like to be able to write, but can't (right now) Then maybe I can say if shorthands can help you. Jo=C3=A3o