]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/package.el: Fix use of `find-library-name`
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 26 Apr 2021 22:40:09 +0000 (18:40 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 26 Apr 2021 22:40:09 +0000 (18:40 -0400)
commit7f03ee8de15df31e57fd86e193901a1cf70cc49d
treef1903f6d257703d181d57d5022031a7d8c19da4f
parent40c71e574ad27deee003a0850a40171750234d59
* lisp/emacs-lisp/package.el: Fix use of `find-library-name`

That function caused a warning for a good reason.
Don't just declare it and hope it will be available.

(package--list-of-conflicts): Require `find-func` explicitly before
declaring the function.  Also don't ignore all errors but only
the `file-error`s which will be emitted by `find-library-name`
in normal circumstances.

* lisp/emacs-lisp/find-func.el (find-library-name): Signal a `file-error`
Instead of a generic `error`.
lisp/emacs-lisp/find-func.el
lisp/emacs-lisp/package.el