all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* auto-update of Info dir file?
@ 2006-05-15 15:28 Drew Adams
  2006-05-15 15:39 ` Andreas Schwab
  2006-05-15 20:31 ` Eli Zaretskii
  0 siblings, 2 replies; 17+ messages in thread
From: Drew Adams @ 2006-05-15 15:28 UTC (permalink / raw)


I haven't thought this through much or tried to investigate how it might
work, but it occurred to me that `info' might do something like this:

For each directory in `Info-directory-list', for each top-level file in the
directory (i.e. whose name doesn't end in "-N", N=1,2,3...): Check if there
is a corresponding entry in the Info `dir' file (in
`Info-dir-contents-directory'), and, if not, add one.

Perhaps there is already part of the mechanism for doing this. When I look
in some Info files now I see (START|END)-INFO-DIR-ENTRY, which makes me
think there must already be a means of adding the entry. Perhaps all that's
missing is to have `info' do that on the fly automatically for each
top-level Info file in the directories of `Info-directory-list'.

Some Info files might not have a (START|END)-INFO-DIR-ENTRY, in which case
only a simple entry would be added - say, using the file name as the link
itself and leaving the description blank. (Or perhaps a description could be
gleaned from the Info file.)

I mention this because of a question in help-gnu-emacs today and a reply
advising the user to add the entry to the `dir' file. Why not have Emacs do
that automatically, so the only user task would be to add the Info files to
the directory?

If this were costly in performance, it might be done only on first use of
`info' in a session.

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

end of thread, other threads:[~2006-05-17  3:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15 15:28 auto-update of Info dir file? Drew Adams
2006-05-15 15:39 ` Andreas Schwab
2006-05-15 15:53   ` Drew Adams
2006-05-15 16:54     ` Andreas Schwab
2006-05-15 20:31 ` Eli Zaretskii
2006-05-16  3:54   ` Stefan Monnier
2006-05-16  4:17     ` Miles Bader
2006-05-16  6:00       ` David Kastrup
2006-05-16 17:39       ` Eli Zaretskii
2006-05-17  2:24         ` Miles Bader
2006-05-16 17:36     ` Eli Zaretskii
2006-05-16 17:54       ` Drew Adams
2006-05-16 18:14         ` Eli Zaretskii
2006-05-16 19:33           ` Drew Adams
2006-05-17  3:24             ` Eli Zaretskii
2006-05-16 19:44           ` Richard Stallman
2006-05-16 18:44       ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.