GNU bug report logs -
#46839
describe-variable should say something slightly different about invisibly defined variables
Previous Next
Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Date: Mon, 1 Mar 2021 03:26:01 UTC
Severity: normal
Tags: fixed
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
describe-variable says
gnus-draft-setup-hook is a variable defined in ‘gnus-draft.el’.
gnus-draft-mode-hook is a variable defined in ‘gnus-draft.el’.
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 ‘gnus-draft.el’.
gnus-draft-mode-hook is a variable invisibly defined in ‘gnus-draft.el’.
(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 ‘gnus-draft.el’.
Its value is ((lambda nil (goto-char (- (point-max) 1))))
gnus-draft-setup-hook is a variable defined in ‘gnus-draft.el’.
Its value is ((lambda nil (goto-char (- (point-max) 1))))
Original value was nil
gnus-summary-article-move-hook is a variable defined in ‘gnus-sum.el’.
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"
This bug report was last modified 4 years and 161 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.