Description of problem: M-x man does not complete man pages that have recently been installed. However, it displays them just fine. Version-Release number of selected component (if applicable): emacs-24.5-7.fc23.x86_64 How reproducible: Always Steps to Reproduce: 1. sudo dnf install autofs 2. In emacs, M-x man 3. auto <TAB> Actual results: Possible completions are: AutoLoader(3pm) AutoSplit(3pm) autoconf(1) autodie(3pm) autodie::Scope::Guard(3pm) autodie::Scope::GuardStack(3pm) autodie::Util(3pm) autodie::exception(3pm) autodie::exception::system(3pm) autodie::hints(3pm) autodie::skip(3pm) autoheader(1) autom4te(1) automake(1) automake-1.15(1) autopoint(1) autoreconf(1) autoscan(1) autoupdate(1) autouse(3pm) Expected results: Should include autofs(8) and autofs.conf(5). It is not about the section, because resolv.conf(5) _is_ completed correctly.
Maybe this is actually a bug in the autofs rpm spec file - maybe it should ensure the man page "cache" that is evidently being used here (whatever it is) is updated?
Probably not, since spec files usually don't invoke mandb directly. Running mandb after installing the package solves the issue. I don't know how rpm uses the man cache when it installs packages containing man pages. Could anybody from the rpm team please advise?
The cache is maintained by man-db.
This is supposed to be handled by the %transfiletriggerin (etc.) trigger in man-db's spec file. That's probably the place to start looking.
In F23, the man cache is updated daily by a cron job. In F24, starting with version 2.7.3-2.fc24, man-db takes advantage of new rpm feature called file triggers and man cache update is triggered after installation of any package containing man pages. Since rpm in F23 also supports file triggers, I will rebase man-db in F23 to solve this issue.
Commit: http://pkgs.fedoraproject.org/cgit/rpms/man-db.git/commit/?h=f23&id=1fc1cdac730e72a29dd79cc80c85a8aef42f5944
man-db-2.7.1-11.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ea371ced65
man-db-2.7.1-11.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ea371ced65
man-db-2.7.1-11.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.