From: Visuwesh <visuweshm@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 72405@debbugs.gnu.org, Drew Adams <drew.adams@oracle.com>
Subject: bug#72405: 29.4; Doc string of `org-indent-mode'
Date: Thu, 01 Aug 2024 11:29:12 +0530 [thread overview]
Message-ID: <8734noiy1b.fsf@gmail.com> (raw)
In-Reply-To: <877cd0iyw4.fsf@gmail.com> (Visuwesh's message of "Thu, 01 Aug 2024 11:10:43 +0530")
[வியாழன் ஆகஸ்ட் 01, 2024] Visuwesh wrote:
> [வியாழன் ஆகஸ்ட் 01, 2024] Eli Zaretskii wrote:
>
>>> Date: Wed, 31 Jul 2024 20:23:59 +0000
>>> From: Drew Adams via "Bug reports for GNU Emacs,
>>> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>>
>>> Likely applies also to other minor-mode doc strings.
>>>
>>> emacs -Q
>>> C-h f org-indent-mode
>>> ____
>>>
>>> That shows you doc that includes this, where `org-indent-mode' is a link
>>> intended to give you information about the _variable_ of that name:
>>>
>>> To check whether the minor mode is enabled in the current buffer,
>>> evaluate 'org-indent-mode'.
>>>
>>> Clicking that link doesn't take you to the _variable_ part of the *Help*
>>> buffer; it just puts you back at the start of the buffer (after
>>> redrawing it uselessly).
>>>
>>> It should take you to the description of the variable. And the sentence
>>> should include the word "variable" before `org-indent-mode'; otherwise,
>>> it makes little sense to speak of evaluating that symbol, and the text
>>> can confuse or mislead users.
>>
>> Thanks, but please report Org issues to the Org mailing list first.
>> If the Org developers determine it's a core Emacs problem (which is
>> hardly possible in this case, but who knows?), then it should be
>> reported here.
>
> That sentence is part of easy-mmode--arg-docstring that gets added to
> all the minor-mode docstrings. So it is not org-mode specific. For
> example, font-lock-mode also has the following text:
>
> To check whether the minor mode is enabled in the current buffer,
> evaluate ‘font-lock-mode’.
Here's a patch to make it insert "the variable " after evaluate. But
I'm not sure if (symbolp getter) will catch all non-variable cases.
AFAIU, GETTER can be any generalised variable.
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index ba0f8bad393..2262fb8ed5b 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -91,7 +91,7 @@ easy-mmode--arg-docstring
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
-evaluate `%s'.
+evaluate %s`%s'.
The mode's hook is called both when the mode is enabled and when
it is disabled.")
@@ -128,6 +128,7 @@ easy-mmode--mode-docstring
easy-mmode--arg-docstring
(if global "global " "")
mode-pretty-name
+ (if (symbolp getter) "the variable " "")
;; Avoid having quotes turn into pretty quotes.
(string-replace "'" "\\='" (format "%S" getter)))))
(let ((start (point)))
next prev parent reply other threads:[~2024-08-01 5:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-31 20:23 bug#72405: 29.4; Doc string of `org-indent-mode' Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-01 5:03 ` Eli Zaretskii
2024-08-01 5:40 ` Visuwesh
2024-08-01 5:59 ` Visuwesh [this message]
2024-08-01 6:18 ` Eli Zaretskii
2024-08-14 0:40 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-14 2:39 ` Visuwesh
2024-08-14 6:12 ` Eli Zaretskii
2024-08-14 6:38 ` Visuwesh
2024-08-14 6:48 ` Eli Zaretskii
2024-08-14 7:27 ` Visuwesh
2024-08-14 7:55 ` Eli Zaretskii
2024-08-14 8:04 ` Visuwesh
2024-08-15 7:39 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734noiy1b.fsf@gmail.com \
--to=visuweshm@gmail.com \
--cc=72405@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.