[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Better way to require with shorthands/renamed symbols
From: |
João Távora |
Subject: |
Re: Better way to require with shorthands/renamed symbols |
Date: |
Mon, 27 Sep 2021 17:59:34 +0100 |
On Mon, Sep 27, 2021 at 4:05 PM Stefan Kangas <stefankangas@gmail.com> wrote:
> > [...] 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ão
Re: Better way to require with shorthands/renamed symbols, João Távora, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, Dmitry Gutov, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, João Távora, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, Stefan Kangas, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols,
João Távora <=
- Re: Better way to require with shorthands/renamed symbols, Stefan Kangas, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, João Távora, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, T.V Raman, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, Richard Stallman, 2021/09/30
Re: Better way to require with shorthands/renamed symbols, Ihor Radchenko, 2021/09/28