all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: Adam Porter <adam@alphapapa.net>,
	emacs-devel <emacs-devel@gnu.org>,
	Stefan Kangas <stefankangas@gmail.com>,
	Dmitry Gutov <dgutov@yandex.ru>
Subject: Re: Shorthands have landed on master
Date: Mon, 27 Sep 2021 23:58:39 +0100	[thread overview]
Message-ID: <CALDnm51zzyiGvgJzJJjJKHBJu-XpsWD1ZEWZCh5j6hP1H+J3Lg@mail.gmail.com> (raw)
In-Reply-To: <87wnn1wsla.fsf@posteo.net>

On Mon, Sep 27, 2021 at 11:40 PM Philip Kaludercic <philipk@posteo.net> wrote:
>
> João Távora <joaotavora@gmail.com> 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ão



  reply	other threads:[~2021-09-27 22:58 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210927003203.15806.29864@vcs0.savannah.gnu.org>
     [not found] ` <20210927003205.EF26620A5E@vcs0.savannah.gnu.org>
2021-09-27 11:10   ` Better way to require with shorthands/renamed symbols Stefan Kangas
2021-09-27 11:58     ` Dmitry Gutov
2021-09-27 12:54       ` Shorthands have landed on master (Was: Better way to require with shorthands/renamed symbols) João Távora
2021-09-27 13:06         ` Dmitry Gutov
2021-09-27 22:40         ` Shorthands have landed on master Philip Kaludercic
2021-09-27 22:58           ` João Távora [this message]
2021-09-28  7:15             ` Philip Kaludercic
2021-09-28  9:03               ` João Távora
2021-09-28  9:14                 ` Eli Zaretskii
2021-09-28  9:17                   ` João Távora
2021-09-28  9:22                 ` Philip Kaludercic
2021-09-28 23:37         ` Shorthands have landed on master (Was: Better way to require with shorthands/renamed symbols) Richard Stallman
2021-09-27 12:24     ` Better way to require with shorthands/renamed symbols João Távora
2021-09-27 12:55       ` Dmitry Gutov
2021-09-27 13:09         ` João Távora
2021-09-27 15:05           ` Stefan Kangas
2021-09-27 16:59             ` João Távora
2021-09-27 20:12               ` Stefan Kangas
2021-09-27 20:18                 ` João Távora
2021-09-28  1:53                   ` T.V Raman
2021-09-30  6:04                     ` Richard Stallman
2021-09-28  4:01                 ` Ihor Radchenko
2021-09-29 23:58 Shorthands have landed on master No Wayman
2021-09-30  2:43 ` Bodertz
2021-09-30  4:26   ` Michael Heerdegen
2021-09-30 22:08     ` Richard Stallman
2021-09-30 22:11       ` João Távora
2021-10-01  3:04         ` Stefan Monnier
2021-10-01  6:01           ` João Távora
2021-10-01  6:34           ` Thierry Volpiatto
2021-10-02 23:18           ` Richard Stallman
2021-10-02 23:19             ` João Távora
2021-10-01 22:38         ` Richard Stallman
2021-10-01 22:45           ` João Távora
2021-10-02  6:15             ` Eli Zaretskii
2021-10-02  6:50               ` João Távora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALDnm51zzyiGvgJzJJjJKHBJu-XpsWD1ZEWZCh5j6hP1H+J3Lg@mail.gmail.com \
    --to=joaotavora@gmail.com \
    --cc=adam@alphapapa.net \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.