emacs-lisp/package.el (package-dir-info): Fix `while' logic.
This commit is contained in:
parent
0dd19ac826
commit
9a895795e8
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2015-01-20 Artur Malabarba <bruce.connor.am@gmail.com>
|
||||
|
||||
* emacs-lisp/package.el (package-dir-info): Fix `while' logic.
|
||||
|
||||
2015-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* emacs-lisp/eieio-generic.el: Remove.
|
||||
|
|
|
@ -1316,9 +1316,14 @@ The return result is a `package-desc'."
|
|||
(while files
|
||||
(with-temp-buffer
|
||||
(insert-file-contents (pop files))
|
||||
(if (setq info (ignore-errors (package-buffer-info)))
|
||||
(setq files nil)
|
||||
(setf (package-desc-kind info) 'dir))))))))
|
||||
;; When we find the file with the data,
|
||||
(when (setq info (ignore-errors (package-buffer-info)))
|
||||
;; stop looping,
|
||||
(setq files nil)
|
||||
;; set the 'dir kind,
|
||||
(setf (package-desc-kind info) 'dir))))
|
||||
;; and return the info.
|
||||
info))))
|
||||
|
||||
(defun package--read-pkg-desc (kind)
|
||||
"Read a `define-package' form in current buffer.
|
||||
|
|
Loading…
Add table
Reference in a new issue