From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.help Subject: Re: c++-mode does not support C-h S? Date: Mon, 06 Mar 2023 16:13:35 +0300 Message-ID: <87mt4q81kw.fsf@osv.gnss.ru> References: <878rgaoqe1.fsf@osv.gnss.ru> <835ybe83b7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30195"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 06 14:14:15 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 1pZAfP-0007gz-6E for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Mar 2023 14:14:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZAev-00061f-LR; Mon, 06 Mar 2023 08:13:45 -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 1pZAeu-00061L-71 for help-gnu-emacs@gnu.org; Mon, 06 Mar 2023 08:13:44 -0500 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZAes-0003sD-NS; Mon, 06 Mar 2023 08:13:43 -0500 Original-Received: by mail-lf1-x136.google.com with SMTP id k14so12648691lfj.7; Mon, 06 Mar 2023 05:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678108418; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=IVE9PQuwBc7ou3FIQ5NHza/EbdXOtPKqAQLdVL0eyxE=; b=RYz/G8JkFT8MjaJIlcm7cFbqgS9UyxQNd1p+DyIq+2ilqwt1E6rAOxIxNZZ9vCdyLM ZKCyJVMJVAR62PCUyrfEYJLyWb+jkxsNlBPTHLp8sx2qGhAlcra2xyJ/C5e6sakhhaNP 9twSslsModWO6/6ZdLIZn3jmN6RDCf4uKLqDf3H4LvZZ0w70gzrYVyn0iO964q7YphzI nwHQANpDOUPPfw9Lgc9K8idZLMkXjSpFKEUXt4kA+dvu5AuGtTHAxcVJ+cDZlvbN3Hgw j+6M0FGsy56ABMOYj9VTbiwkjoIHOsG9ZIjYUqYJHT7dC/YQOdEY5idfWXcCPnQOqxJd NJrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678108418; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IVE9PQuwBc7ou3FIQ5NHza/EbdXOtPKqAQLdVL0eyxE=; b=RIkfEiGPQY6w8iftn1CkloUQzgoDBjEoUE+UJvRu2Wnjs8ScQcJ2adYzlgsMvtoJi0 fqmLADy1IoK5ez2mohYeYWKw3hyiG+qMww48xdxRtXM3zi4xmBsddY3rt9HQf8Pj3lt9 5M335HYDNOEds2YLmqwz05ASzpjtHG4TX+wYoiL+H/ydqdYoxl46xU8Ah5KWiQMjcnyE UJibgFuxRc0PciWHd/0SwYI2M7TspKj6ZGJou8aIMukbguLGiCTfZN7HtKZNRHTkq+ar q+daHKgk68q4hFLSJzSJYvR2w6w5VhyHj2UFcXTVoGSIsOZ/y+7+oImjp/ZH30MdKUA2 LAPA== X-Gm-Message-State: AO0yUKWjEp2JNyrBGIDmP1fNkdk3XGBeXy906muZ3GwqL84CVXkaQqCR Rp8z9FxJZ8qh0M1clgILnsCuvXWgKYo= X-Google-Smtp-Source: AK7set+makI4jkTd+TanOge4P1c+OFC1iSItouba0bHXmje563fR4hIFDqJ2G5JRKoHjlLHCCI8btQ== X-Received: by 2002:a05:6512:20f:b0:4dd:995b:feaa with SMTP id a15-20020a056512020f00b004dd995bfeaamr2617501lfo.24.1678108417517; Mon, 06 Mar 2023 05:13:37 -0800 (PST) Original-Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id f4-20020ac251a4000000b004d85789cef1sm1625064lfk.49.2023.03.06.05.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 05:13:36 -0800 (PST) In-Reply-To: <835ybe83b7.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 Mar 2023 14:36:12 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=sorganov@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:142934 Archived-At: 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. Thanks, -- Sergey Organov