summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/subr-x.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-05-01 18:38:07 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2016-05-01 18:38:07 +0200
commitce98b0b1ab20a1b5a0fe85c8b118b34d3b3cf274 (patch)
treeb990694b4689c7ff51ae0e5f1bfe394a0eefdb88 /lisp/emacs-lisp/subr-x.el
parentbf0b6fab032bd35fae36f7371b7cd1fe3bfaaac7 (diff)
downloademacs-ce98b0b1ab20a1b5a0fe85c8b118b34d3b3cf274.tar.gz
emacs-ce98b0b1ab20a1b5a0fe85c8b118b34d3b3cf274.tar.bz2
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 'lisp/emacs-lisp/subr-x.el')
0 files changed, 0 insertions, 0 deletions