unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33869: 26.1; function locate-dominating-file not documented in elisp manual
@ 2018-12-25 20:23 Adam Porter
  2018-12-28  8:38 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Porter @ 2018-12-25 20:23 UTC (permalink / raw)
  To: 33869

The function locate-dominating-file appears to be missing from the elisp
manual.  Interestingly, this was noticed and asked by another user on
another forum:

https://stackoverflow.com/questions/40618516/where-is-locate-dominating-file-documented

I noticed this because just now I was trying to remember the name of the
function, and I kept looking in apropos and the manual for other words
and word lists like "overriding", "find file", "find path", "find
directory", etc.

I finally found it by searching Google for "emacs function find repo
directory", and the second hit was a question on Emacs.StackExchange
that mentioned locate-dominating-file.

Thanks.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#33869: 26.1; function locate-dominating-file not documented in elisp manual
  2018-12-25 20:23 bug#33869: 26.1; function locate-dominating-file not documented in elisp manual Adam Porter
@ 2018-12-28  8:38 ` Eli Zaretskii
  2019-10-12 22:24   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2018-12-28  8:38 UTC (permalink / raw)
  To: Adam Porter; +Cc: 33869

> From: Adam Porter <adam@alphapapa.net>
> Date: Tue, 25 Dec 2018 14:23:51 -0600
> 
> The function locate-dominating-file appears to be missing from the elisp
> manual.  Interestingly, this was noticed and asked by another user on
> another forum:
> 
> https://stackoverflow.com/questions/40618516/where-is-locate-dominating-file-documented
> 
> I noticed this because just now I was trying to remember the name of the
> function, and I kept looking in apropos and the manual for other words
> and word lists like "overriding", "find file", "find path", "find
> directory", etc.

If we cannot come up with a phrase or a list of phrases for which
locate-dominating-file might be the hit one looks for, I don't see how
adding this to the ELisp manual could improve the discoverability.
None of those you tried above sound right to me, and I'm hard-pressed
for coming with something that is right.  The guy in the SO discussion
wanted the root of the VC repository, which is just one special case
where this function can help, and happens to have a better answer
(vc-root-dir).  So that discussion doesn't really help.

Thus, please suggest phrases that could serve as index entries for
this function.

> I finally found it by searching Google for "emacs function find repo
> directory", and the second hit was a question on Emacs.StackExchange
> that mentioned locate-dominating-file.

When I try that search, only the first hit is a StackExchange
discussion, and it doesn't mention this function.  What am I missing?

Thanks.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#33869: 26.1; function locate-dominating-file not documented in elisp manual
  2018-12-28  8:38 ` Eli Zaretskii
@ 2019-10-12 22:24   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-12 22:24 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Adam Porter, 33869

Eli Zaretskii <eliz@gnu.org> writes:

>> The function locate-dominating-file appears to be missing from the elisp
>> manual. 

[...]

> If we cannot come up with a phrase or a list of phrases for which
> locate-dominating-file might be the hit one looks for, I don't see how
> adding this to the ELisp manual could improve the discoverability.

I've now documented it right below directory-files-recursively and
cindexed them both with (respectively)

@cindex recursing upwards in directories

@cindex recursing downwards in directories

since they are kinda opposites of each other.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-12 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-25 20:23 bug#33869: 26.1; function locate-dominating-file not documented in elisp manual Adam Porter
2018-12-28  8:38 ` Eli Zaretskii
2019-10-12 22:24   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).