Giter Site home page Giter Site logo

Marmalade support about el-get HOT 7 CLOSED

dimitri avatar dimitri commented on September 28, 2024
Marmalade support

from el-get.

Comments (7)

dabrahams avatar dabrahams commented on September 28, 2024

Interesting; for this to work you actually need the version of package.el from the emacs 24 repository: http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/emacs-lisp/package.el

The version of package.el on tromey.com doesn't have a package-archives variable.

(setq el-get-sources 
  '((:name package 
     :url "http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/emacs-lisp/package.el")))

from el-get.

dabrahams avatar dabrahams commented on September 28, 2024

Also, I note that you have to add a trailing slash to that URL or it breaks:

(add-to-list 
  'package-archives 
  '("marmalade" . "http://marmalade-repo.org/packages/"))

from el-get.

dabrahams avatar dabrahams commented on September 28, 2024

I further note that fully using package.el from emacs24 requires one more elisp file, package-x.el from the same repo, and that it doesn't include the original elpa package archive by default. So you may also need:

(add-to-list
'package-archives
'("tromey" . "http://tromey.com/elpa/"))

from el-get.

dimitri avatar dimitri commented on September 28, 2024

One of you should probably send us the full working new recipe of package.el, using the Emacs24 code and with support for tromey and marmalade archives. I'll be happy to apply such a change.

Also, has some testing been done wrt the packages.el from Emacs24 working fine with previous Emacs version, at least emacs 23?

from el-get.

taoeffect avatar taoeffect commented on September 28, 2024

Yeah, it'd be nice to make sure that this works emacs 23.

from el-get.

antonj avatar antonj commented on September 28, 2024

I'm using this recipe to get package.el working with emacs 23, the issue is that 'package-subdirectory-regexp' is not defined in package.el, I don't know where it went, it used to be there :) Anyway this recipe would work as a hack for emacs versions prior to 24. Marmelade support could be added in the post-init hook. I also commented the same snippet on #209

(:name aj-package
               :type http
               :url "http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/emacs-lisp/package.el"
               :features package
               :post-init (lambda ()
                            (unless (boundp 'package-subdirectory-regexp)
                              (defconst package-subdirectory-regexp
                                "^\\([^.].*\\)-\\([0-9]+\\(?:[.][0-9]+\\)*\\)$"
                                "Regular expression matching the name of a package subdirectory. The first subexpression is the package name. The second subexpression is the version string."))
                            (setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
                                                     ("gnu" . "http://elpa.gnu.org/packages/")))
                            ;; Don't init, elpa packages installed by el-get is initialized from loaddefs
                            ;;(package-initialize)
                            ))

from el-get.

dimitri avatar dimitri commented on September 28, 2024

I merged your post-init into the package24 recipe from el-get, and added the marmelade URL in package-archives. Is it ok enough this way?

from el-get.

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.