* bug#46839: describe-variable should say something slightly different about invisibly defined variables
@ 2021-02-28 15:41 積丹尼 Dan Jacobson
2021-03-01 13:03 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-02-28 15:41 UTC (permalink / raw)
To: 46839
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#46839: describe-variable should say something slightly different about invisibly defined variables
2021-02-28 15:41 bug#46839: describe-variable should say something slightly different about invisibly defined variables 積丹尼 Dan Jacobson
@ 2021-03-01 13:03 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-03-01 13:03 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 46839
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> 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’.
[...]
> "Well just click the link. If it is invisibly defined, you will just go
> to the top of the file."
You've reported something like this before, and told that it's fixed in
Emacs 28.
It's still fixed in Emacs 28. You do not have to report this more
times.
Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-01 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-28 15:41 bug#46839: describe-variable should say something slightly different about invisibly defined variables 積丹尼 Dan Jacobson
2021-03-01 13:03 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.