* bug#21962: 25.0.50; doc of `normal-top-level-add-subdirs-to-load-path'
@ 2015-11-20 5:15 Drew Adams
2016-04-30 22:26 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2015-11-20 5:15 UTC (permalink / raw)
To: 21962
Looking at the code, it seems that this function does not add only
subdirectories of the current `default-directory'. It seems to add all
descendant directories of `default-directory'.
A subdirectory is a child, not a grandchild etc. I believe that is the
usual terminology. It is, in any case, the terminology that Emacs uses
in, for example Dired. It is also why the doc uses language such as
"with subdirectories handled recursively" to distinguish the practice of
handling not only the subdirectories of a directory, but their
subdirectories, and so on, recursively.
So IIUC what the function does, IMO its description is incorrect. Or at
best it is misleading, if you claim that "subdirectory" means any
descendant directory. Please change the doc to make clear just what
directories are added to `load-path'.
And consider documenting this function in the Elisp manual, if not in
the Emacs manual.
Similarly, function `normal-top-level-add-to-load-path.
In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
of 2015-11-09
Bzr revision: 86c19714b097aa477d339ed99ffb5136c755a046
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs --enable-check-lisp-object-type
--without-compress-install --with-wide-int 'CFLAGS=-O0 -ggdb3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#21962: 25.0.50; doc of `normal-top-level-add-subdirs-to-load-path'
2015-11-20 5:15 bug#21962: 25.0.50; doc of `normal-top-level-add-subdirs-to-load-path' Drew Adams
@ 2016-04-30 22:26 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2016-04-30 22:26 UTC (permalink / raw)
To: Drew Adams; +Cc: 21962
Drew Adams <drew.adams@oracle.com> writes:
> Looking at the code, it seems that this function does not add only
> subdirectories of the current `default-directory'. It seems to add all
> descendant directories of `default-directory'.
>
> A subdirectory is a child, not a grandchild etc. I believe that is the
> usual terminology. It is, in any case, the terminology that Emacs uses
> in, for example Dired. It is also why the doc uses language such as
> "with subdirectories handled recursively" to distinguish the practice of
> handling not only the subdirectories of a directory, but their
> subdirectories, and so on, recursively.
>
> So IIUC what the function does, IMO its description is incorrect. Or at
> best it is misleading, if you claim that "subdirectory" means any
> descendant directory. Please change the doc to make clear just what
> directories are added to `load-path'.
I've now done so.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-30 22:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-20 5:15 bug#21962: 25.0.50; doc of `normal-top-level-add-subdirs-to-load-path' Drew Adams
2016-04-30 22:26 ` 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).