From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: auto-update of Info dir file? Date: Mon, 15 May 2006 23:31:20 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1147725312 22194 80.91.229.2 (15 May 2006 20:35:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 May 2006 20:35:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 15 22:35:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FfjmW-0006RF-Qo for ged-emacs-devel@m.gmane.org; Mon, 15 May 2006 22:35:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfjmW-00074w-Tc for ged-emacs-devel@m.gmane.org; Mon, 15 May 2006 16:35:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfjmJ-00074h-Kf for emacs-devel@gnu.org; Mon, 15 May 2006 16:34:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfjmI-00074N-Lo for emacs-devel@gnu.org; Mon, 15 May 2006 16:34:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfjmI-00074K-GM for emacs-devel@gnu.org; Mon, 15 May 2006 16:34:54 -0400 Original-Received: from [192.114.186.17] (helo=gandalf.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ffjol-0002i4-Ne for emacs-devel@gnu.org; Mon, 15 May 2006 16:37:28 -0400 Original-Received: from nitzan.inter.net.il (nitzan.inter.net.il [192.114.186.20]) by gandalf.inter.net.il (MOS 3.7.1-GA) with ESMTP id ITB17277; Mon, 15 May 2006 23:31:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-251-91.inter.net.il [84.228.251.91]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DJH69114 (AUTH halo1); Mon, 15 May 2006 23:31:17 +0300 (IDT) Original-To: "Drew Adams" In-reply-to: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54529 Archived-At: > From: "Drew Adams" > Date: Mon, 15 May 2006 08:28:50 -0700 > > 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. I think this will slow down Info startup to an intolerable degree. For example, I have more than 70 such top-level Info files in my Info directory, some of them compressed. > 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'. When a package is installed, its "make install" target should automatically run the install-info program, which updates the menu in DIR. So, for systems that are well set up, this problem does not exist, and I don't see why we should punish users of such systems on behalf of the other kind. > 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. That user got half the world and their dog mixed up. I wouldn't recommend jumping to conclusions based on that case alone. > If this were costly in performance, it might be done only on first use of > `info' in a session. It will be still painful, IMO.