> Yes, this makes sense. Here is a patch that the issues you mentioned.I'm still not sure which situations you want to exclude, so it's hard to
judge whether your patch does do it...
> + (locate-file library...but special casing ".el.gz" is definitely not a good idea. Why would
> + (or path load-path)
> + (unless (or nosuffix (string-suffix-p ".el.gz" library))
it need special treatment?
It's extremely rare for `library' to end in ".el.gz" here.
Stefan