From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#71117: 30.0.50; output of describe-function Date: Wed, 29 May 2024 00:04:26 +0200 Message-ID: <87r0dl4mqd.fsf@gmail.com> References: <24a8c119-5b86-46f0-bbf0-e9d9d5b77713@easy-emacs.de> <87ikz5g2ou.fsf@gmail.com> <86sey966x1.fsf@gnu.org> <87ikz5v65p.fsf@gmail.com> <86h6ep5cbq.fsf@gnu.org> <86ikyxu7br.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14971"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , andreas.roehler@easy-emacs.de, 71117@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 29 00:06:34 2024 Return-path: Envelope-to: geb-bug-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 1sC4xl-0003fU-UU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 May 2024 00:06:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sC4x8-00025k-De; Tue, 28 May 2024 18:05:54 -0400 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 1sC4x6-00025U-Tx for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 18:05:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sC4x6-0008ML-MA for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 18:05:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sC4xG-0006yI-5V for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 18:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 May 2024 22:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71117 X-GNU-PR-Package: emacs Original-Received: via spool by 71117-submit@debbugs.gnu.org id=B71117.171693394626766 (code B ref 71117); Tue, 28 May 2024 22:06:02 +0000 Original-Received: (at 71117) by debbugs.gnu.org; 28 May 2024 22:05:46 +0000 Original-Received: from localhost ([127.0.0.1]:59848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sC4wz-0006xc-Ui for submit@debbugs.gnu.org; Tue, 28 May 2024 18:05:46 -0400 Original-Received: from mail-lj1-f182.google.com ([209.85.208.182]:46354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sC4wx-0006xI-MR for 71117@debbugs.gnu.org; Tue, 28 May 2024 18:05:44 -0400 Original-Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2e716e302bdso16027191fa.1 for <71117@debbugs.gnu.org>; Tue, 28 May 2024 15:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716933868; x=1717538668; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nci54iOo264KYN0txzhzBfFQRuQgLPD95KQRnPg9Lok=; b=ft5DK0xQq4dh3ESXTG5LnvQemh1AflAqFNQnlcmuLz6Q4iHDFI6KmJ4N3tQlbbmy87 gL8jZ78Zx0fuVCdvihvzPhJb+MRXk1fHqejX9NQX1DVRRWL4KmFG2YmKHV7eGEL33q0r zWzJJEZuaeX+4CytniuX0AxgDxT+8AHWJMNu4+kltLNBs1ItGqdCxxgWfP6s2/MxdABg a+6iuCzP0lCofIEWmq5/WxTp+1sz7+DMQs9YATUbHFiS2o7uq3joy+aIkhLFRPsrB5bu UcCCINLhfvGvI6BK8dXXCrujxDWvNyYVdEU/O6Su/5P1UsdKkXJSn8sy1YAbzZFstZd6 AjIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716933868; x=1717538668; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=nci54iOo264KYN0txzhzBfFQRuQgLPD95KQRnPg9Lok=; b=iT4QJ29f9nA6HxDVzjbs76AwBHlq+KK9Ye6jxlBuos+GdoDxfhCXVUiJdoGnEiLD1C OMp40bG9qSXlHNq3IJ0AYJUe4Pk9seUDxXuIXFA0noM38Ic5Jq1GzqZDO2pXZAlNk+QV ksCVZPyws3hUj7Fqv9HT2s2LLc9NLi4SmHAle28qYvjjupMcWbH6TR27y69ZxZHKK1zG 0cwIvuuyHkSOqvDOH99V+u2pZV3iMAHz0y4OZS7RWnKmezAC0GFAv0eGFO4dJg0KJLoY 9CXTjyqWS00jWse6rX8vYatEC4CP4y7W/lPPROxMQpJu/4a2MnqJw+uWZzpfVvOlPQgQ V2lg== X-Forwarded-Encrypted: i=1; AJvYcCVHbI0xbBlV6kPmed32++odtm0E0pHtVatiQeQmP7URlJyQLQVRy03QC4y5xI53qa6LHR7C7wS3npNxkcGx/ReK2SNNV94= X-Gm-Message-State: AOJu0Yxb5nnxqaRe5BLNjSA9vqCJhPmUm+9WQzaFTpe083wzk/OJaNEC ++DF5mnfd59zZMb2tLH0q9PhMIlfhLOxHvBwRPLSciEWq2PuzPJG X-Google-Smtp-Source: AGHT+IEagTjoeZci+HNjhTiy4GYSKEBtGLIov0onIeTc0LVYV08+o5ki/acSrENugd52bAnvAAyivA== X-Received: by 2002:a2e:a170:0:b0:2ea:2b91:4f6c with SMTP id 38308e7fff4ca-2ea2b915150mr1966531fa.4.1716933867685; Tue, 28 May 2024 15:04:27 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3574c7017d1sm10307060f8f.76.2024.05.28.15.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:04:27 -0700 (PDT) In-Reply-To: (Andrea Corallo's message of "Tue, 28 May 2024 15:42:30 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286127 Archived-At: Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Andrea Corallo >>> Cc: K=C3=A9vin Le Gouguec , >>> 71117@debbugs.gnu.org, >>> andreas.roehler@easy-emacs.de >>> Date: Tue, 28 May 2024 13:44:33 -0400 >>>=20 >>> >> Were you thinking of a command that specifically targets the symbol = from >>> >> a displayed *Help* buffer, so the user would do e.g. >>> >>=20 >>> >> C-h v VAR RET ; shows *Help* for VAR >>> >> C-h SOMETHING ; finds source for VAR >>> >>=20 >>> >> where C-h SOMETHING's implementation would do (a smarter version of) >>> >> (with-current-buffer "*Help*" >>> >> (help-view-source)) >>> >>=20 >>> >> ? >>> > >>> > Yes, exactly. >>>=20 >>> Something like the attached? >>>=20 >>> It makes C-h z FUNCTION find the source for FUNCTION. >> >> I might be mistaken, but I don't think this is what I had in mind. > > You are not. > >> My use case is exactly like described above: I type "C-h v" or "C-h >> f", which displays the *Help* buffer in the other window. Then I want >> to go to the source where the variable or function are defined, but >> without the need to switch to the window showing *Help*. > > The attached is my understanding of what we want (still using C-h z). > K=C3=A9vin's mail make me suspect I've been too naive but anyway =F0=9F= =98=85... I don't actually have concrete examples where my allegedly-not-so-smart serving suggestion might fail =F0=9F=98=89 The best I can come up with are what-ifs, e.g. "what if a user advises describe-* functions to rename *Help* buffers to something non-standard like *Help *"; my answer then would be "describe-* commands could set some variable, e.g. last-help-buffer, that 'C-h z' could then consult". That's if we cared to support this kind of edge case, of course. Re. the binding: if we are entering "Do Something With That Help Buffer I Just Invoked"-land, I wonder if we should stop at view-source; I could imagine users wanting to do other useful things like goto-info or customize. In which case maybe we can find a mnemonic prefix to tuck all these actions? Thinking of e.g. 'C-h 4' (for the "other-window" connotation) or 'C-h H' (for "current _H_elp buffer"); help-find-source would then be bound to 'C-h 4 s', for example. (info-other-window currently hogs 'C-h 4 i' unfortunately=E2=80=A6 though nowadays 'C-x 4 4 i' also works, and 'C-x 4 i' is currently free =F0=9F=A4= =94 'C-x 4 h' is also free to use as a prefix, but maybe a bit of a fingerful) Don't give too much weight to my ramblings; I find 'C-h z' a bit cryptic, but I don't know that my alternatives are better.