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?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#46839: describe-variable should say something slightly different about invisibly defined variables Date: Sun, 28 Feb 2021 23:41:23 +0800 Message-ID: <87tupw6vz0.5.fsf@jidanni.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="23147"; mail-complaints-to="usenet@ciao.gmane.io" To: 46839@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 01 04:26:18 2021 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 1lGZCJ-0005rF-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 04:26:16 +0100 Original-Received: from localhost ([::1]:50854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGZCI-0007VY-EI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 22:26:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGZC7-0007UR-Lv for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 22:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGZC6-000431-9Z for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 22:26:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGZC6-0003Cq-55 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 22:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Mar 2021 03:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46839 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161456911612263 (code B ref -1); Mon, 01 Mar 2021 03:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Mar 2021 03:25:16 +0000 Original-Received: from localhost ([127.0.0.1]:47680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGZBM-0003Bi-Gz for submit@debbugs.gnu.org; Sun, 28 Feb 2021 22:25:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGZBK-0003BS-58 for submit@debbugs.gnu.org; Sun, 28 Feb 2021 22:25:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGZBJ-0007GG-V5 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 22:25:13 -0500 Original-Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]:41500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGZBG-0003aP-Q2 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 22:25:12 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5A69B7E25D1 for ; Mon, 1 Mar 2021 03:25:07 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a29.g.dreamhost.com (100-96-16-22.trex.outbound.svc.cluster.local [100.96.16.22]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id EE1087E25C2 for ; Mon, 1 Mar 2021 03:25:06 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a29.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.22 (trex/6.0.2); Mon, 01 Mar 2021 03:25:07 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Chief-Troubled: 707725261fa6239f_1614569107187_2259137405 X-MC-Loop-Signature: 1614569107187:751402242 X-MC-Ingress-Time: 1614569107187 Original-Received: from pdx1-sub0-mail-a29.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a29.g.dreamhost.com (Postfix) with ESMTP id A30497E3CB for ; Sun, 28 Feb 2021 19:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=B1ugmIMqNUGOYsGJal xBYV4IRHU=; b=oW/VwgbaMS+SC8tWOTGkEd/Ji0GmyI544p26ILjgdMAGe9vWao Z1cMBJP03eqtqgfAM06UsAeE5239nU1OEeVKz5Jtc5PGMqdISuenNhkQpQqVRIP3 Zy/cBrTyokrLN5pdgKrwU9y6WiVouhAmLlGZXALHGTHGKRDbzqbJWgdkk= Original-Received: from jidanni.org (111-246-96-43.dynamic-ip.hinet.net [111.246.96.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a29.g.dreamhost.com (Postfix) with ESMTPSA id 2BB0A7EFC7 for ; Sun, 28 Feb 2021 19:25:05 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a29 Received-SPF: pass client-ip=23.83.212.47; envelope-from=jidanni@jidanni.org; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:201047 Archived-At: describe-variable says gnus-draft-setup-hook is a variable defined in =E2=80=98gnus-draft.el=E2= =80=99. gnus-draft-mode-hook is a variable defined in =E2=80=98gnus-draft.el=E2= =80=99. However one can be found in that file, one can't. describe-variable could not be lying, therefore the one that can't be found must still be declared, in some new invisible way. Fine. However please make the help message output a little different, so we will know if we are about to have a wild goose chase looking for it or not. "Well just click the link. If it is invisibly defined, you will just go to the top of the file." Yes, but still, please make the wording a little different: E.g., gnus-draft-setup-hook is a variable defined in =E2=80=98gnus-= draft.el=E2=80=99. gnus-draft-mode-hook is a variable invisibly defined in =E2=80=98gnus-= draft.el=E2=80=99. (Proof: $ zgrep gnus-draft-.*hook *.el.gz gnus-draft.el.gz:(defcustom gnus-draft-setup-hook nil gnus-draft.el.gz: (run-hooks 'gnus-draft-setup-hook)))) OK. Now let's change some values and see what describe-variable says. gnus-draft-mode-hook is a variable defined in =E2=80=98gnus-draft.el=E2=80= =99. Its value is ((lambda nil (goto-char (- (point-max) 1)))) gnus-draft-setup-hook is a variable defined in =E2=80=98gnus-draft.el=E2=80= =99. Its value is ((lambda nil (goto-char (- (point-max) 1)))) Original value was nil gnus-summary-article-move-hook is a variable defined in =E2=80=98gnus-sum= .el=E2=80=99. Its value is nil We can tell the second one, gnus-draft-setup-hook was chagnged by us, because the Original value was mentioned. But for the first and third, well one we tinkered with, and one we didn't. But ah ha! There is no way to tell from the wording. >From the wording one guesses both still have the origninal value. emacs-version "27.1"