From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: c++-mode does not support C-h S? Date: Mon, 06 Mar 2023 14:36:12 +0200 Message-ID: <835ybe83b7.fsf@gnu.org> References: <878rgaoqe1.fsf@osv.gnss.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4649"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 06 13:38:22 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZA6f-000169-CM for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Mar 2023 13:38:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZA5a-0001F9-JF; Mon, 06 Mar 2023 07:37:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZA4j-0008N5-29 for help-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:36:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZA4h-0004Za-Pq for help-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:36:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Hz9VOQgxtRThc1JM6o/L4TyyZ8zXzbksqemRu4KT26o=; b=hI15aekBW/lf q3OKwk7adj8ChicQ7e1lMEurrVP7R6NZk5mrrfTd2fq31LNcwCBO/ThRIrJSydLiGLi+1gjBkCy07 g7CeW1p5l1eE9uZNRqCrz9yjWV3kL1mHc6KumYz+H1WYGX+kG6kuqju4GIwlCIH1yfAQPLH1p1VmY nz93rrNQK6/263MEwQ9rccnDtez19ejK6JQRhmdUDToNWcvJnfKksE6TfHvOucyUTWICVNT3gdNs9 +MQGONdM9iNSrcv9b16kckF4D1dcrFTdTtH+nD3bzcMjmveENyXNXowHMtL8072pQA1VeQPedmdf9 PvOOkctAIbuI28BH+xn8rg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZA4h-00041Q-00 for help-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:36:19 -0500 In-Reply-To: <878rgaoqe1.fsf@osv.gnss.ru> (message from Sergey Organov on Mon, 06 Mar 2023 00:11:02 +0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142933 Archived-At: > 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? > 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. > 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.