emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

package.el support for file: URLs (was: Package.el merged)


From: Ted Zlatanov
Subject: package.el support for file: URLs (was: Package.el merged)
Date: Sat, 14 Aug 2010 10:01:42 -0500
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

On Fri, 13 Aug 2010 13:26:39 -0500 Ted Zlatanov <address@hidden> wrote: 

TZ> On Wed, 16 Jun 2010 22:39:18 -0400 Chong Yidong <address@hidden> wrote: 
CY> Currently package.el is not in loadup.el; I am still unsure whether to
CY> add it, or use autoloads and juggle things so that it's not loaded
CY> unless the user installs a package.

TZ> I think autoloading package.el could create subtle problems later on,
TZ> especially for distros.  Putting it in loadup.el is probably safer.

Also, package.el assumes HTTP URLs so it breaks if you try to set up a
local ELPA repo.  I made it work with these changes to just two
functions.  The change introduces filep and uses it to determine if we
need to do:

        (package-handle-response)
        (re-search-forward "^$" nil 'move)
        (forward-char)

Patch attached, please review as I don't know package.el so well.  It
seems to work for me.

Ted

Attachment: package.fileURLs.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]