I was looking for a way to set the default compile directory in emacs and found a great answer here
However I would like to know how I would ever know about this function without google. Below are the current official sources that I know about that document emacs and elisp.
If I know what I am searching for, finding the documentation is easy:
M-x describe-function locate-dominating-file returns
locate-dominating-file is a compiled Lisp function in ‘files.el’.
(locate-dominating-file FILE NAME)
Look up the directory hierarchy from FILE for a directory containing NAME.
Stop at the first parent directory containing a file NAME,
and return the directory. Return nil if not found.
Instead of a string, NAME can also be a predicate taking one argument
(a directory) and returning a non-nil value if that directory is the one for
which we’re looking.
The emacs and elisp manual (posted above) do not seem to have locate-dominating-file documented.
Here is my question:
How would I ever discover locate-dominating-file even existed without google? As of right now it seems that for this particular function (locate-dominating-file) the only way I could ever discover it (without google) is to actually open up files.el and become familiar with the source. Is that really the only way or am I missing some other obvious source?