MINGW-packages icon indicating copy to clipboard operation
MINGW-packages copied to clipboard

Emacs info files are not included on top tree

Open oscarfv opened this issue 9 years ago • 3 comments

Start Emacs and show the info tree top (C-h i) The Emacs manuals are not listed.

Likewise if you use the command-line info viewer.

Apparently the Emacs manuals are not installed correctly on the info index (the files are there, though.)

oscarfv avatar May 20 '15 23:05 oscarfv

I guess we're missing something like emacs.install from ArchLinux, but I don't get how this fits with the multiple hiearchies we have. Do we include mingw32 and mingw64 infopages in /usr/share/info/dir? Can mingw32 and mingw64 version of the same package result in a conflict there?

elieux avatar May 21 '15 00:05 elieux

We've just noted this bug in when running Emacs-26 the distribution of which uses mingw32. The problem appears to be caused by the path conversion. INFOPATH is set up correct to end with a colon, but this colon is removed when paths are converted to use semi. The trailing colon is meaningful -- Emacs interprets it to mean "add INFOPATH to existing info directories" rather than "replace existing info directories with INFOPATH".

phillord avatar May 11 '19 16:05 phillord

Emacs 28.1 and the issue is still present. I see the info files themselves being present under /mingw64/share/info while $INFOPATH says /usr/local/info:/usr/share/info:/usr/info:/share/info. I'm running MinGW64 shell.

Just to be clear, this isn't an Emacs package specific problem. It's a MinGW64/32 problem.

legends2k avatar Jul 12 '22 07:07 legends2k

This is apparently a workaround: https://emacs.stackexchange.com/a/51396

RKBK avatar Nov 12 '22 07:11 RKBK

The real issue is that the .info files are installed for msys2 packages only. In other words, /usr/share/info directory is only parsed by install-info command. The following command may help to regenerate the info files index. Run the command only in MINGW/UCRT/CLANG environment.

for f in $MINGW_PREFIX/share/info/* ; do install-info $f $MINGW_PREFIX/share/info/dir ; done

Biswa96 avatar Nov 12 '22 10:11 Biswa96

@Biswa96 Running your command didn't change anything. Emacs still doesn't find e.g. the manual for e.g. itself. I ran it in my MINGW64 terminal.

The Info-directory-list variable in emacs contains e.g. "C:\msys64\usr\share\info", which is the wrong directory. I believe this is what @phillord mentioned before.

RKBK avatar Nov 12 '22 15:11 RKBK

That install-info command will only regenerate the dir file in $MINGW_PREFIX/share/info directory. You have to also add that path in $INFOPATH as @legends2k mentioned.

The issue will be fixed soon. There is a solution https://discord.com/channels/792780131906617355/792780132398006315/1040979146106478713

Biswa96 avatar Nov 12 '22 15:11 Biswa96