emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto-update of Info dir file?


From: Miles Bader
Subject: Re: auto-update of Info dir file?
Date: Wed, 17 May 2006 11:24:49 +0900

Eli Zaretskii <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]