unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: dhruva <dhruvakm@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: info DIR file: Duplicate topic entries problem
Date: Sat, 23 Jun 2007 17:09:32 +0300	[thread overview]
Message-ID: <u8xaapxsz.fsf@gnu.org> (raw)
In-Reply-To: <e3f230850706230628o18e7f4f8p87ed778887c13668@mail.gmail.com> (message from dhruva on Sat, 23 Jun 2007 18:58:08 +0530)

> Date: Sat, 23 Jun 2007 18:58:08 +0530
> From: dhruva <dhruvakm@gmail.com>
> Cc: emacs-devel@gnu.org
> 
> On 6/23/07, Eli Zaretskii <eliz@gnu.org> wrote:
> > > for all topics. The next time I update and build, I see a second entry
> > > for almost all the topics (except "Emacs Lisp Introduction"). It is
> > > not a case of blind appending, something else must be broken in the
> > > "make info" which updates the DIR file.
> >
> > Do you mean that the `info/dir' _file_ gets modified to include
> > duplicate entries?  Or do you mean that looking at the (dir) _node_
> > after typing "C-h i" in Emacs, you see duplicate menu items?
> >
> 
> The info/dir file does not have duplicate entries.

Well, your text above, viz:

  something else must be broken in the "make info" which updates the DIR file.

did suggest that the _file_ DIR has duplicate copies.  Thus my
question.

> But, I do see
> duplicate menu entries on "C-h i" in emacs. I could fix this by
> renaming the folder in which I had build emacs. This makes me believe
> that emacs has taken the build directory as the part of the info path
> list

Yes, that's true.

> The list var "Info-default-directory-list" has the following value

You are looking at the wrong variable.  The correct one is
Info-directory-list.  See the functions info-initialize and
Info-default-dirs which compute its value at startup.

I'm not sure that it's a Bad Thing that the build directory is first
in Info-default-dirs.  Emacs always prefers the Info files that came
with the specific version you built, for the case that you experiment
in the build directory without uninstalling the officially installed
one.

The code in Info-default-dirs does not do on Windows exactly what it
does on GNU/Linux, but that's for a good reason: Windows binaries are
very likely to run on a system other than the one where they were
built, and the code that sets up Info-directory-list should DTRT in
that case.  You are welcome to suggest changes that avoid duplicate
entries in the DIR node, but please make sure the modified code does
not break the use case where the binaries are installed in an
arbitrary directory with no sources or build directory anywhere in
sight.

> ("c:/emacs/info/" "/usr/local/share/info/" "/usr/local/info/"
> "/usr/local/gnu/info/" "/usr/local/gnu/lib/info/"
> "/usr/local/gnu/lib/emacs/info/" "/usr/local/emacs/info/"
> "/usr/local/lib/info/" "/usr/local/lib/emacs/info/" "/gnu/info/"
> "e:/GNU/emacs/info/")
> 
> The last entry is the location I have installed emacs (e:/gnu/emacs).
> IMHO, the other directories are redundant. Based on the OS, could we
> have a smaller set or could this be decided based on the existence of
> the folder?

We already do that, see info-initialize.  That's why
Info-directory-list doesn't include the non-existing directories.

  reply	other threads:[~2007-06-23 14:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-23  3:36 info DIR file: Duplicate topic entries problem dhruva
2007-06-23  3:58 ` dhruva
2007-06-23  7:39 ` Eli Zaretskii
2007-06-23 13:28   ` dhruva
2007-06-23 14:09     ` Eli Zaretskii [this message]
2007-06-23 16:03       ` dhruva
2007-06-23 16:37         ` dhruva
2007-06-23 16:55           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u8xaapxsz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dhruvakm@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).