[Top][All Lists]

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

Re: c++-mode does not support C-h S?

From: Sergey Organov
Subject: Re: c++-mode does not support C-h S?
Date: Mon, 06 Mar 2023 16:13:35 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Eli Zaretskii <> writes:

>> From: Sergey Organov <>
>> Date: Mon, 06 Mar 2023 00:11:02 +0300
>> In a buffer with c++-mode major mode, pressing C-h S causes appearance
>> of the prompt "Use symbol help mode: " in the minibuffer that, according
>> to the manual, means c++-mode does not support info-lookup-symbol?:
>>  If you use C-h S in a major mode that does not support it, it asks you
>>  to specify the symbol help mode. You should enter a command such as
>>  c-mode that would select a major mode which C-h S does support.
> If you type "c-mode RET" at the prompt, does the feature work then?

Yes, it does. It finds symbols in GNU C library info files alright then.

>> How do I configure c++-mode to use c-mode to lookup symbols
> Copy the two info-lookup-maybe-add-help blocks in info-look.el that
> reference c-mode and make them reference c++-mode.

Thanks for the hint, will try.

>> and why it's not configured this way by default?
> Because the _real_ documentation of C++ is usually not installed on
> the end-user systems.

GNU Standard C++ Library v3 (documentation files) are likely to be
installed on Linux hosts, I think.

Also, C library is still accessible from C++, so search in GNU C info
files what was not found in C++ seems to be a good idea as well.

-- Sergey Organov

reply via email to

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