GNU bug report logs -
#13160
24.3.50; [PATCH] man page completion support beyond man-db
Previous Next
Reported by: Wolfgang Jenkner <wjenkner <at> inode.at>
Date: Wed, 12 Dec 2012 19:25:02 UTC
Severity: wishlist
Tags: patch
Found in version 24.3.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 13160 <at> debbugs.gnu.org (full text, mbox):
Wolfgang Jenkner <wjenkner <at> inode.at> writes:
>
> So let's just cache all entries at the first completion attempt.
I do that for speed and because I have some pagename-at-point stuff
which tries some prefix/suffix combinations to make a good guess.
Holding everything uses up a fair amount of memory but I never came up
with anything better. I only keep the description part of each name if
needed for completing-help.el or icicles. I suppose turfing the cache
after a timer could reclaim memory.
For the cache I also watch /var/cache/man/index.db (configurable) for
mtime changes indicating newly installed programs. If like me you
download and install to have a look at something then new pagenames
happen quite often and an automatic reload is good.
With man-db the index.db is a gdbm or whatever database of course.
I suppose direct access would be both much less ram and faster, but I
don't think man-db advertises it for external use. I never worked out
why running man -k isn't already faster than it seems to be -- just the
quantity of data being churned by it and then by emacs I suppose.
--
Walk without rhythm and it won't attract the worm.
This bug report was last modified 12 years and 136 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.