Git Product home page Git Product logo

Comments (6)

AltGr avatar AltGr commented on August 26, 2024

For info: this has been verified with versions 22.1.1 and 24.4.1 (console and "app")

from tuareg.

Chris00 avatar Chris00 commented on August 26, 2024

Is there a way to reliably detect that the "Emacs app" is present? What is the OPAM flag to use so compilation takes place except on OSX?

from tuareg.

monnier avatar monnier commented on August 26, 2024

The easiest would be to not run the compilation by default in the
OPAM package.

Also, installation via M-x list-packages RET would eliminate
the problem.

    Stefan

from tuareg.

Chris00 avatar Chris00 commented on August 26, 2024

installation via M-x list-packages RET would eliminate the problem.

Absolutely but they want to automate the whole installation (Tuareg being only one component).

There is already an attempt at detecting the app version on OSX. Could you please tell me how to refine it? — I do not have a mac.

from tuareg.

AltGr avatar AltGr commented on August 26, 2024

Indeed, that works (it is'nt yet in the OPAM package, but I had success with pinning this git); although I am not sure it is possible to use the compiled code and remain portable in the general case. In the case above, the newer version works for Emacs.app but breaks the text-mode emacs (although with a cleaner error: "file xxx was compiled for Emacs version 23 or later"). And on OSX, there may also be an Aquamacs in the mix...

Even in the general case, it's possible that the system Emacs is changed, and that may break an already compiled Tuareg. On binary distributions, this is handled with hooks that'll register all .elc and make sure they are up-to-date whenever Emacs changes, but we don't have a mechanism to track system dependencies (yet -- there a are plans for this, see https://github.com/ocaml/opam/blob/master/doc/design/depexts-plugins)

So I am afraid that the only way to guarantee it won't break, at the moment, is to install no compiled files from the OPAM package ; the post-message may provide a hint on compiling, or installing through M-x list-packages...

from tuareg.

Chris00 avatar Chris00 commented on August 26, 2024

The upcoming opam file only installs .el files — as you did for earlier versions.

from tuareg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.