[opam-devel] user-setup
Yaron Minsky
yminsky at gmail.com
Mon Aug 24 16:25:29 BST 2015
Great.
In addition, I wonder if we can try to do some testing of the setup as part
of the testing of updates to the opam metadata. Right now, for example,
emacs just errors out on startup in some cases. Having a test of
user-setup that verified some basic functionality would be really nice.
y
On Mon, Aug 24, 2015 at 12:44 AM Louis Gesbert <louis.gesbert at ocamlpro.com>
wrote:
> > - Yaron Minsky, 23/08/2015 11:51 -
> > Have you thought much about user-setup of late? I tried to use it in
> > an up-to-date mac, and the emacs setup failed. I think it was relying
> > on some missing package. Do you have any thoughts as to how we can
> > get this to the point where it works reliably enough to be usable to
> > newbies?
>
> I'll look into it; there have been changes to the installation of emacs
> files for e.g. ocp-indent, and the according update of user-setup may not
> have made it yet into opam, so that might be the cause of your trouble.
>
> I don't think we are far from there, and we have had a few successful
> reports, but it's quite difficult to test reliably. There are also quite a
> few improvements pending, which I'll get into opam-repo ASAP. One of them
> moves the bulk of ocaml-specific emacs configuration into
> ~/.emacs.d/opam-user-setup.el.
>
> > Another thing about user-setup is that its operations are only
> > implicit, i.e., it only does things on install, which means if you
> > want to do something like set up a clean .emacs file, or even just get
> > a list of the things it's doing, there's no obvious way.
>
> Indeed, as of now its only "interface" is with opam. The new version
> should display some information about what files it is updating, at least
> on newer opam, but that's a bare minimum.
>
> > I think it
> > would be ideal if user-setup came with a command-line tool, and
> > actually if it only modified files after you called that command-line
> > tool, which would warn you about what it was going to do, and maybe
> > even give you a way of immediately unrolling.
>
> Indeed; the command-line tool is currently very limited in terms of
> interaction, as it's designed to be run from opam, but that would be well
> worth improving. At least having it list its current status when run
> without arguments would be quite helpful.
>
> I'll look into this.
>
> Best,
> Louis Gesbert -- OCamlPro_______________________________________________
> opam-devel mailing list
> opam-devel at lists.ocaml.org
> http://lists.ocaml.org/listinfo/opam-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20150824/419c2221/attachment.html>
More information about the opam-devel
mailing list