<div dir="ltr">Great.<div><br></div><div>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.</div><div><br></div><div>y</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 24, 2015 at 12:44 AM Louis Gesbert <<a href="mailto:louis.gesbert@ocamlpro.com">louis.gesbert@ocamlpro.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> - Yaron Minsky, 23/08/2015 11:51 -<br>
> Have you thought much about user-setup of late?  I tried to use it in<br>
> an up-to-date mac, and the emacs setup failed.  I think it was relying<br>
> on some missing package.  Do you have any thoughts as to how we can<br>
> get this to the point where it works reliably enough to be usable to<br>
> newbies?<br>
<br>
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.<br>
<br>
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.<br>
<br>
> Another thing about user-setup is that its operations are only<br>
> implicit, i.e., it only does things on install, which means if you<br>
> want to do something like set up a clean .emacs file, or even just get<br>
> a list of the things it's doing, there's no obvious way.<br>
<br>
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.<br>
<br>
> I think it<br>
> would be ideal if user-setup came with a command-line tool, and<br>
> actually if it only modified files after you called that command-line<br>
> tool, which would warn you about what it was going to do, and maybe<br>
> even give you a way of immediately unrolling.<br>
<br>
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.<br>
<br>
I'll look into this.<br>
<br>
Best,<br>
Louis Gesbert -- OCamlPro_______________________________________________<br>
opam-devel mailing list<br>
<a href="mailto:opam-devel@lists.ocaml.org" target="_blank">opam-devel@lists.ocaml.org</a><br>
<a href="http://lists.ocaml.org/listinfo/opam-devel" rel="noreferrer" target="_blank">http://lists.ocaml.org/listinfo/opam-devel</a><br>
</blockquote></div>