diff options
| author | Lars Ingebrigtsen | 2016-05-01 18:38:07 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-05-01 18:38:07 +0200 |
| commit | ce98b0b1ab20a1b5a0fe85c8b118b34d3b3cf274 (patch) | |
| tree | b990694b4689c7ff51ae0e5f1bfe394a0eefdb88 /admin | |
| parent | bf0b6fab032bd35fae36f7371b7cd1fe3bfaaac7 (diff) | |
| download | emacs-ce98b0b1ab20a1b5a0fe85c8b118b34d3b3cf274.tar.gz emacs-ce98b0b1ab20a1b5a0fe85c8b118b34d3b3cf274.zip | |
Allow finding libraries loaded manually outside the load-path
* lisp/emacs-lisp/find-func.el (find-library--from-load-path):
New function to find a library from a load path (bug#5661).
(find-library-name): Use it.
There are so many combinations of inputs and possibly entries in
`load-history' that the code looks like an entry in a code obfuscation
contest. If anybody has a better implementation, please substitute.
But remember that the input given may be foo, foo.el, foo.elc, and the
entries in load-history may be foo.el, foo.elc and foo.el.gz, and we
want to return only foo.el and foo.el.gz. *phew*
Diffstat (limited to 'admin')
0 files changed, 0 insertions, 0 deletions