unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: emacs-devel@gnu.org
Subject: Re: Easy configuration of a site-lisp directory
Date: Thu, 26 Aug 2021 00:13:34 +0200	[thread overview]
Message-ID: <AM9PR09MB497729F6C68ABA6AE9B4708496C69@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <87mtp594xe.fsf@posteo.net> (Philip Kaludercic's message of "Wed,  25 Aug 2021 10:47:41 +0000")

Philip Kaludercic <philipk@posteo.net> writes:

> Arthur Miller <arthur.miller@live.com> writes:
>
>> Philip Kaludercic <philipk@posteo.net> writes:
>>
>>> Just wanted to ping this message to check if there is any interest in
>>> doing something with my initial suggestion?
>>
>> I do something similar as you do, but I use it only for some loose
>> files I write myself, and for some I download from emacs wiki etc.
>>
>>>> The fundamental idea is to have an easy-to-use ~/.emacs.d/site-lisp/
>>>> directory where a user can clone any repository or create their own,
>>>> without having to manually add these to load-path, generate autoloads or
>>>> byte compile.
>>
>> I have a question: is it desirable to use a working git directory as
>> installed package? When I write my own files, I usually don't wish to
>> copy them over to my "lisp" directory which I autoload in Emacs, untill
>> I am done. Admittedly I started doing so before git has entered the
>> scene. Now I guess one can switch branches every time one works on a package
>> between some development branch and some stable, but isn't it a bit tedious?
>
> Usually I don't store them in my site-lisp directory, but just symlink
> what I want to use from my source code directory. If something isn't
> functional or ready, there shouldn't be any reason I would want it
> byte-compiled, autoloaded and ready to use by default.

That is what I thought, and that means you are in the same situation as
without auto importing some "site-lisp" dir when it comes to xref & co? 

So what you proposed comes mostly in play when there is bunch of code installed
manually outisde of package.el. If there was only few files, I don't think it
would be intresseting to automate it either, so I guess there is more than few
files, probably a bunch of git cloned repos.

I think that something like what you propose is OK for you who are developer and
know what you do. But if you put something like this on auto in Emacs, I think
that lots of people with get troubles which can lead to even more frequent mailing
list :).

> If there is some critical change or something that isn't ready yet, I'd
> just use "git stash".
>
>> What you are suggesting is to effectively use "site-lisp" as another
>> package-user-dir (~/.emacs.d/elpa on my machine). You are also auto
>> recursing in all dirs, so if user wish to remove something they have to
>> remove that directory from the path?
>
> Yes, but I hesitate to compare it to package-user-dir, as to me packages
> stand in relation to some package manager, while site-lisp.el only
> implements the bare minimum.

Exactly. I am not sure if it is even the bare miniumum. 

Bringing in paths and code in Emacs, is just but one part of package
management. Installling dependencies and also uninstalling everything correctly,
not leaving orphaned pacakges behind or removing something still needed is as
important as well. For that reason I think that going through package.el would
be a better idea.

Everyone's setup is of course private, but I don't think that is a 
good idea and good alternative to proper package management. For the same reason
why we don't install packages manually in our gnu/linux distributions but use
some sort of package management system. Doing manually ./configure - make dance
is nowdays considered a bad practice.

Anyway, I understand your attempt, and I responded, because I was lately
looking for myself what to do, becuase I also would prefer to have easy hackable
packages, with same consideration as you said, to have emacs help system and
xref bring me to correct spot. I am not sure myself what I am gonna use.




  reply	other threads:[~2021-08-25 22:13 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-08 15:40 Easy configuration of a site-lisp directory Philip Kaludercic
2021-08-08 18:18 ` Stefan Monnier
2021-08-08 18:53   ` Philip Kaludercic
2021-08-08 20:03     ` Stefan Monnier
2021-08-08 22:43   ` dick
2021-08-08 23:16     ` Stefan Monnier
2021-08-09  0:43       ` dick
2021-08-09  3:13         ` Clément Pit-Claudel
2021-08-09 16:59           ` Eli Zaretskii
2021-08-09 18:33             ` Clément Pit-Claudel
2021-08-09 18:49               ` dick
2021-08-09 22:11                 ` Clément Pit-Claudel
2021-08-10  8:24                   ` Arthur Miller
2021-08-10  8:31                 ` Arthur Miller
2021-08-09 18:52               ` Eli Zaretskii
2021-08-09 22:14                 ` Clément Pit-Claudel
2021-08-10 11:55                   ` Eli Zaretskii
2021-08-10  8:10               ` Arthur Miller
2021-08-10 12:06                 ` Eli Zaretskii
2021-08-10 13:43                   ` Yuri Khan
2021-08-10 14:01                     ` Eli Zaretskii
2021-08-10 15:10                       ` Yuri Khan
2021-08-10 15:39                         ` dick
2021-08-10 15:49                           ` Stefan Monnier
2021-08-10 17:31                           ` Arthur Miller
2021-08-10 15:44                         ` Eli Zaretskii
2021-08-10 17:25                           ` Clément Pit-Claudel
2021-08-10 17:50                             ` Eli Zaretskii
2021-08-10 18:06                               ` Clément Pit-Claudel
2021-08-10 18:23                                 ` Eli Zaretskii
2021-08-10 20:51                                 ` Stefan Monnier
2021-08-11  2:23                                   ` Eli Zaretskii
2021-08-11  5:31                                     ` Stefan Monnier
2021-08-11 13:42                                     ` Basil L. Contovounesios
2021-08-11 16:34                                       ` Eli Zaretskii
2021-08-11 18:21                                         ` Basil L. Contovounesios
2021-08-12  5:48                                           ` Eli Zaretskii
2021-08-10 17:35                         ` Clément Pit-Claudel
2021-08-10 17:24                     ` Arthur Miller
2021-08-10 17:22                   ` Arthur Miller
2021-08-10 17:45                     ` Eli Zaretskii
2021-08-09  6:52     ` Arthur Miller
2021-08-09 11:50       ` dick
2021-08-09 15:27         ` Arthur Miller
2021-08-19  9:25 ` Philip Kaludercic
2021-08-19 20:24   ` Arthur Miller
2021-08-19 21:43     ` Arthur Miller
2021-08-19 21:47       ` Arthur Miller
2021-08-19 21:59         ` Philip Kaludercic
2021-08-20  0:21           ` Arthur Miller
2021-08-20 21:36             ` Arthur Miller
2021-08-21  1:56               ` Stefan Monnier
2021-08-21  2:46                 ` Arthur Miller
2021-08-21  3:12                   ` Arthur Miller
2021-08-21  6:39                     ` Eli Zaretskii
2021-08-21  6:48                       ` tomas
2021-08-21  7:00                         ` Eli Zaretskii
2021-08-21  7:19                           ` symlinks and W32 [was: Easy configuration of a site-lisp directory] tomas
2021-08-21 14:15                             ` Arthur Miller
2021-08-21 14:20                               ` Eli Zaretskii
2021-08-21 19:12                                 ` Arthur Miller
2021-08-21 14:34                       ` Easy configuration of a site-lisp directory Arthur Miller
2021-08-21 14:42                         ` Eli Zaretskii
2021-08-21 19:10                           ` Arthur Miller
2021-08-21 19:18                             ` Eli Zaretskii
2021-08-21 20:25                               ` Arthur Miller
2021-08-22  6:03                                 ` Eli Zaretskii
2021-08-25 10:47     ` Philip Kaludercic
2021-08-25 22:13       ` Arthur Miller [this message]
2021-08-26  9:42         ` Philip Kaludercic
2021-08-26 15:58           ` Arthur Miller
2021-08-20 10:23   ` Augusto Stoffel
2021-08-20 12:47     ` Arthur Miller
2021-08-23  9:14 ` Max Brieiev
2021-08-24 21:35   ` Stefan Monnier
2021-08-25 11:13     ` Philip Kaludercic
2021-08-25 14:37       ` Stefan Monnier
2021-08-25 14:55         ` Philip Kaludercic
2021-08-25 17:27           ` Stefan Monnier
2021-08-26  0:16             ` Arthur Miller
2021-08-26  4:10               ` Stefan Monnier
2021-08-26 15:38                 ` Arthur Miller
2021-08-26 18:03                   ` Stefan Monnier
2021-08-26 21:40                     ` Arthur Miller
2021-08-25 22:29           ` Arthur Miller
  -- strict thread matches above, loose matches on Subject: below --
2021-08-12  2:44 No Wayman
2021-08-12 12:41 ` dick
2021-08-12 14:48   ` No Wayman
2021-08-12 16:24     ` dick

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=AM9PR09MB497729F6C68ABA6AE9B4708496C69@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).