From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: auto-update of Info dir file? Date: Wed, 17 May 2006 11:24:49 +0900 Message-ID: References: <87u07qr5iq.fsf-monnier+emacs@gnu.org> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147832720 11432 80.91.229.2 (17 May 2006 02:25:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 May 2006 02:25:20 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 17 04:25:18 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 1FgBin-0005Mq-Fm for ged-emacs-devel@m.gmane.org; Wed, 17 May 2006 04:25:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgBim-0002cx-UB for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 22:25:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgBib-0002cd-GD for emacs-devel@gnu.org; Tue, 16 May 2006 22:24:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgBia-0002c0-9v for emacs-devel@gnu.org; Tue, 16 May 2006 22:24:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgBia-0002bw-5e for emacs-devel@gnu.org; Tue, 16 May 2006 22:24:56 -0400 Original-Received: from [203.180.232.82] (helo=mgate02.necel.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FgBlG-0002Kc-US; Tue, 16 May 2006 22:27:43 -0400 Original-Received: from relay21.aps.necel.com (relay21 [10.29.19.50]) by mgate02.necel.com (8.13.6/8.13.1) with ESMTP id k4H1Z5E3004628; Wed, 17 May 2006 11:24:49 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay21.aps.necel.com with ESMTP; Wed, 17 May 2006 11:24:49 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.97.235] [10.114.97.235]) by relay11.aps.necel.com with ESMTP; Wed, 17 May 2006 11:24:49 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 8B3323E3; Wed, 17 May 2006 11:24:49 +0900 (JST) Original-To: Eli Zaretskii System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: (Eli Zaretskii's message of "Tue, 16 May 2006 20:39:37 +0300") Original-Lines: 27 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:54614 Archived-At: Eli Zaretskii writes: >> I don't understand why Drew's suggestion would be slow anyway -- it's a >> simple syntactic check, which would only use the _names_ of the info >> files in the directory listing. It wouldn't even have to stat the info >> files, much less read or decompress them. > > Really? We probably have two different implementations in mind. I > was thinking about finding in the file and adding to the top-level > menu the missing @direntry text in the right @dircategory, and for > that, you do have to read the file and decompress it. Well my idea was that _most_ files would have proper dir entries, so you'd only have to read the @direntry to supply entries for the few (if any) that didn't. So the only real overhead would be proportional to the number of info files with missing entries, not to the total number of info files. Hopefully the former number is very small (and as far as I've seen, this is the case). If it _isn't_ small then you've clearly got serious problems with your info setup anyway, and it's arguably better for emacs to bite the bullet and spend the time to make things usable rather than giving the user a bogus info dir. -Miles -- 80% of success is just showing up. --Woody Allen