[opam-devel] user-setup

Yaron Minsky yminsky at gmail.com
Wed Aug 26 17:57:42 BST 2015

I think running emacs on an init script created by the tool would be a
useful test, and would catch most errors either in the scripts themselves,
or incompatibilities between other tools (opam, Merlin, ocp-indent) and the
emacs init scripts.


On Wed, Aug 26, 2015, 10:49 AM Anil Madhavapeddy <anil at recoil.org> wrote:

> I didn't quite understand this last point, as a non-Emacser.  What sort of
> breakage to existing packages cause these Emacs errors?  What tests would
> make sense as part of a pull request to detect these?
> -anil
> On 24 Aug 2015, at 16:25, Yaron Minsky <yminsky at gmail.com> wrote:
> 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
> _______________________________________________
> 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/20150826/32130ec1/attachment.html>

More information about the opam-devel mailing list