emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] malabarba/package.el-reload-files-on-upgrade 300dbb1 1


From: Artur Malabarba
Subject: Re: [Emacs-diffs] malabarba/package.el-reload-files-on-upgrade 300dbb1 1/2: * emacs-lisp/package.el (package--list-loaded-files): New function
Date: Thu, 11 Dec 2014 08:34:30 +0000

Including the list.

2014-12-11 8:33 GMT+00:00 Artur Malabarba <address@hidden>:
> 2014-12-11 3:15 GMT+00:00 Stefan Monnier <address@hidden>:
>>> -(defun package-built-in-p (package &optional min-version)
>>> -  "Return true if PACKAGE is built-in to Emacs.
>>> -Optional arg MIN-VERSION, if non-nil, should be a version list
>>> -specifying the minimum acceptable version."
>>> -  (if (package-desc-p package) ;; was built-in and then was converted
>>> -      (eq 'builtin (package-desc-dir package))
>>> -    (let ((bi (assq package package--builtin-versions)))
>>> -      (cond
>>> -       (bi (version-list-<= min-version (cdr bi)))
>>> -       ((remove 0 min-version) nil)
>>> -       (t
>>> -        (require 'finder-inf nil t) ; For `package--builtins'.
>>> -        (assq package package--builtins))))))
>>
>> Why remove this function?
>
> Just to check if you were paying attention...
> Sorry about that, I have no idea how it got past me.
>
>>
>>> +(defun package-list-loaded-files (dir)
>>> +  "List all files in DIR which correspond to loaded features.
>>> +Returns the `file-name-base' of each file, sorted by most recently
>>> +loaded last."
>>
>> I don't really like the assumption that package names don't have slash
>> in them (this is false for CEDET, for example, and I think that AUCTeX
>> also uses names with slash for its style files).
>> But I guess it's OK for now.
>
> The current branch approaches this issue.
> `package--list-loaded-files' now returns a recursive list of files,
> with their names relative to the given DIR. I felt this was the right
> approach, since auctex doesn't add its "style" subdir to the
> load-path.



reply via email to

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