Bug 97813 - Info node for emacs-21 not working in khelpcenter or konqueror
Summary: Info node for emacs-21 not working in khelpcenter or konqueror
Status: CONFIRMED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: default (show other bugs)
Version: 18.04.2
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-24 18:34 UTC by José A. Cañizo
Modified: 2021-10-27 00:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description José A. Cañizo 2005-01-24 18:34:09 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When browsing info pages in khelpcenter (or in konqueror), most nodes under Emacs do not work. They give the error message

The Info node emacs/top in Info file /usr/share/info/emacs-21 does not exist.

In my debian/testing system info files for Emacs are under /usr/share/info/emacs-21 and work fine from the command line (info emacs). The nodes that do not work seem to be all under this directory (for example, under Emacs, ispell has its own info page and works in khelpcenter).
Comment 1 Nicolas Goutte 2005-08-13 22:40:35 UTC
I cannot confirm. For me, Emacs' info file works, including node 21 (RMail, Dired, Calendar)

The info pages on my system are also in /usr/share/info however gzipped.

Have a nice day!
Comment 2 José A. Cañizo 2005-08-14 13:27:11 UTC
It does happen in my system. As I said, problems seem to happen when info pages are inside a directory under /usr/share/info. I'll leave the bug as unconfirmed.
Comment 3 Nicolas Goutte 2005-08-15 00:01:33 UTC
Apparently, KDE Bugs has not accepted what I have written earlier. Too bad!

So I am asking a short version of what I had written: what is the URL (for example  info:/emacs/Dired ) given by Konqueror when the message error is triggered. (I am aware that they are many apparently, I just want one of them.)

Have a nice day!
Comment 4 Nicolas Goutte 2005-08-15 00:03:50 UTC
And I forgot the second part of what I had asked: can you confirm that it is not bug #104728 (the only other known bug for info:). The bug is by using the "Up" button.

Otherwise said: can you get your error message without using the "Up" button at all?

Have a nice day!
Comment 5 José A. Cañizo 2005-08-15 02:57:13 UTC
The error happens, for example, when using the following address in Konqueror:
info:/emacs-21/emacs/Top
The error obtained is:

Error

 The Info node emacs/top in Info file /usr/share/info/emacs-21 does not exist. 

The above address is the one that appears in the links in Khelpcenter under the node Emacs, and it gives the same error from there. This is all you need to get the error, so it is not bug #104728.

Hope this helps!
Comment 6 Nicolas Goutte 2005-08-15 17:42:19 UTC
On Monday 15 August 2005 02:57, José wrote:
[bugs.kde.org quoted mail]

Yes, and that is the problem. From where does the "emacs-21" come from?


> The error obtained is:
>
> Error
>
>  The Info node emacs/top in Info file /usr/share/info/emacs-21 does not
> exist.
>


> The above address is the one that appears in the links in Khelpcenter under


So probably the address comes from an index. So I am going to look in that 
direction.

> the node Emacs, and it gives the same error from there. This is all you
> need to get the error, so it is not bug #104728.
>


> Hope this helps!


I do not know yet, but at least it shows a new direction and that is a good 
sign.

Have a nice day!
Comment 7 Nicolas Goutte 2005-08-16 16:16:26 UTC
I think there was a misunderstanding. I have found out that the Emacs on my system has the version 21.3. Suddenly the 21 gives another meaning than the 21st file of Emacs' info pages.
Comment 8 José A. Cañizo 2005-08-16 17:55:00 UTC
Sorry for the confusion. I did mean version 21 of Emacs; I am using 21.4.1 . In my system there is a directory /usr/share/info/emacs-21 under which there are many gzipped files: emacs.gz, emacs-1.g, emacs-2.gz..., gnus.gz, gnus-1.gz...
Comment 9 Nicolas Goutte 2005-08-16 18:12:12 UTC
On Tuesday 16 August 2005 17:55, José wrote:
(...)
> ------- Additional Comments From mail01789-kdebugs yahoo com  2005-08-16
> 17:55 ------- Sorry for the confusion. I did mean version 21 of Emacs; I am
> using 21.4.1 . In my system there is a directory /usr/share/info/emacs-21
> under which there are many gzipped files: emacs.gz, emacs-1.g,
> emacs-2.gz..., gnus.gz, gnus-1.gz...


Can you give me the content of your $INFOPATH and $INFODIR environment 
variables?

These are handled by the Perl script that generates the HTML files out of info 
files but perhaps it is not enough.

Have a nice day!
Comment 10 José A. Cañizo 2005-08-16 21:51:49 UTC
It seems they are not defined in my system: I get an empty line as the answer to the next two commands:

echo $INFOPATH

echo $INFODIR
Comment 11 Nicolas Goutte 2005-08-22 18:26:21 UTC
The help script for KDE has a configuration file: kde-info2html.conf

Perhaps you could find it on your system and try to modify it. There is a list of directories:

#-- location of info files.
our @INFODIR = (
	    "/usr/share/info",
	    "/usr/info",
	    "/usr/lib/info",
#	    "/usr/lib/teTeX/info",
	    "/usr/local/info",
	    "/usr/local/lib/info",
	    "/usr/X11R6/info",
	    "/usr/X11R6/lib/info",
	    "/usr/X11R6/lib/xemacs/info"
	    );

You could modify that list, like for example:

#-- location of info files.
our @INFODIR = (
	    "/usr/share/info",
            "/usr/share/info/emacs-21",
	    "/usr/info",
	    "/usr/lib/info",
#	    "/usr/lib/teTeX/info",
	    "/usr/local/info",
	    "/usr/local/lib/info",
	    "/usr/X11R6/info",
	    "/usr/X11R6/lib/info",
	    "/usr/X11R6/lib/xemacs/info"
	    );


Have a nice day!
Comment 12 José A. Cañizo 2006-07-11 23:00:46 UTC
Some new info on this bug.

It still happens in KDE 3.5.3. After looking at it again, it seems that what happens is the following: in my Debian/testing system,
* /usr/share/info is listed in @INFODIR in the file kde-info2html.conf
* /usr/share/info/emacs-21 is not listed there.

Then, trying to access info:/emacs-21/emacs/Top does not look for the info node 'Top' in the info file /usr/share/info/emacs-21/emacs. Instead, it looks for the info node 'emacs/Top' in the file /usr/share/info/emacs-21. In my system, this is a directory and konqueror gives an error.

To say it another way: If the directory /usr/share/info/emacs-21 is not in @INFODIR, I can't access any of the info files under it by using the info: protocol (even if /usr/share/info is in @INFODIR). If I add the directory '/usr/share/info/emacs-21' to @INFODIR in kde-info2html.conf, then I can access the info files in it with, for example, info:/emacs.

Maybe this is the expected behavior and one should add /usr/share/info/emacs-21 to @INFODIR, and then it may be a bug in the Debian distribution. But note also that if I go to info:/ and click on the link for "emacs", it takes me to info:/emacs-21/emacs/Top, which gives the above error, even when the node for emacs is correctly listed in the file /usr/share/info/dir as 'Emacs: (emacs-21/emacs).' Even if I add /usr/share/info/emacs-21 to @INFODIR the link from info:/ won't work, though by doing that I can manually access the info file.

Suggestion: in an adress for the info:/ protocol, there should be a way to specify which part is the file and which part is the node inside the file. Then, the link for emacs-21/emacs/Top should take advantage of it so that kde-info2html does not get confused.

I hope this helps!
Comment 13 Julian Steinmann 2018-07-05 21:11:23 UTC
This bug is now more than a decade old, and interestingly enough I am still able to reproduce this: running 

kioclient5 exec info:/emacs-24/emacs

returns an error (" The Info node emacs in Info file /usr/share/info/emacs-24 does not exist."). I'll therefore move this bug report over to kio-extras, but it might take another decade until this is fixed ;)