Code Monkey home page Code Monkey logo

Comments (9)

purcell avatar purcell commented on May 27, 2024

Yes and no. Precedence is not directly supported by package.el, but there's a workaround -- see the "Customizations" section of the documentation on http://melpa.milkbox.net/

from emacs.d.

priyadarshan avatar priyadarshan commented on May 27, 2024

Thank you for the pointer. I have set (setq package-archive-exclude-alist '("marmalade" . slime)) as detailed there, to prevent the installation of package slime@marmalade, but it still gets installed instead of the melpa's one. Where am I getting it wrong?

from emacs.d.

purcell avatar purcell commented on May 27, 2024

Have you also installed and initialised melpa.el, as described on that page?

from emacs.d.

priyadarshan avatar priyadarshan commented on May 27, 2024

Sorry I can't make it work (I feel like a dufus.)

I installed melpa.el as described, and initialised it. Then evaluated (setq package-archive-exclude-alist '("marmalade" . slime)). Finally M-x package-install RET slime RET.

Still installing from marmalade. (I probably am a dufus).

from emacs.d.

purcell avatar purcell commented on May 27, 2024

Hang on, I think I misread your original message - sorry. If you have both Marmalade and Melpa in your package-archives list, then you shouldn't need to do anything further -- Melpa will always appear to have the highest-numbered package versions, so its packages will always have precedence over those from Marmalade.

So in this case you can ignore my advice about melpa.el, though it may prove useful to you at some point.

Given the behaviour you've reported, my guess is that you need to update your list of available packages. You can do this most easily by running M-x package-list-packages RET. The version of Slime listed there should then be the one from Melpa, which you can then install by pressing i then x.

Apologies for my confusion.

from emacs.d.

priyadarshan avatar priyadarshan commented on May 27, 2024

Alas, I run that command but no luck. the list of packages shows no sign of slime 20120501 (from melpa), but only the one installed by default, slime 20100404.1 from marmalade.

I was wondering , if that priority mechanism is already in place, why .emacs.d would download the marmalade one the first time anyway?

from emacs.d.

purcell avatar purcell commented on May 27, 2024

Wow... I'm really being an idiot today. I didn't even notice that this was filed as an "emacs.d" issue, and so I answered it as if it was a Melpa issue!

So the final answer is that this behaviour is according to my personal preferences, because I use the old Slime version in order to be compatible with Clojure.

If you want to change this in your fork, look at line 77 of init-elpa.el. There's a list of packages in that block of code, and if you remove "slime" from the list then re-evaluate the block of code, you should be able to see the Melpa version of Slime in the package list. :-)

(No guarantees that the rest of the emacs.d is compatible with that newer slime, though!)

Thanks for your patience,

-Steve

from emacs.d.

priyadarshan avatar priyadarshan commented on May 27, 2024

Wonderful, it works perfectly now.

Your .emacs.d is indeed a treasure trove of interesting code.

Thank you so much for your help and all your time.

-priyadarshan

from emacs.d.

purcell avatar purcell commented on May 27, 2024

Glad you got it working! Have a great day.

from emacs.d.

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.