Fork me on GitHub
#emacs
<
2017-04-19
>
richiardiandrea20:04:20

is there a way in emacs to detect all the unused functions?

dpsutton20:04:29

unused elisp functions?

dpsutton20:04:30

probably not based on this: (funcall (intern "plusp") 4)

richiardiandrea20:04:05

yes unused functions in a file

ag21:04:07

that’s interesting question. I wonder if there’s a “static code analyzer” tool or something for elisp

tanzoniteblack21:04:23

@richiardiandrea xref-find-references will show you all the places where a function is explicitly called, and will warn you if none are found; you could probably script that somehow to do what you want?

richiardiandrea22:04:12

@tanzoniteblack oh interesting did not know that, yeah that sounds like easy to achieve