* bug#69402: 28.3; checkdoc does not check for docstrings wider than 80 characters
@ 2024-02-26 8:12 Tim Landscheidt
2024-02-26 12:53 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Tim Landscheidt @ 2024-02-26 8:12 UTC (permalink / raw)
To: 69402
(I am not sure whether this is a bug or a missing feature;
the reference to byte-compile-docstring-max-column in
lisp/emacs-lisp/checkdoc.el made me assume this should
work.)
With Emacs 28.3 and a test-checkdoc.el:
| ;;; test-checkdoc.el --- Tests
| ;;; Commentary:
| ;;
| ;;; Code:
| (defcustom my-test-configuration
| nil
| "This docstring is longer than xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx characters."
| :group 'does-not-matter
| :type 'string)
| (defvar my-test-variable
| nil
| "This docstring is longer than xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx characters.")
| (defun my-test-function
| nil
| "This docstring is longer than xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx characters.")
| (provide 'test-checkdoc)
| ;;; test-checkdoc.el ends here
M-x checkdoc RET reports:
| Buffer comments and tags: Ok
| Documentation style: Ok
| Message/Query text style: Ok
| Unwanted Spaces: Ok
However, byte-compile-file complains:
| ^L
| Compiling file /tmp/test-checkdoc.el at Mon Feb 26 08:10:04 2024
| test-checkdoc.el:8:1: Warning: custom-declare-variable `my-test-configuration'
| docstring wider than 80 characters
| test-checkdoc.el:14:1: Warning: defvar `my-test-variable' docstring wider than
| 80 characters
| In my-test-function:
| test-checkdoc.el:18:8: Warning: docstring wider than 80 characters
IMHO, checkdoc should check that docstrings are no longer
than 80 (or byte-compile-docstring-max-column) characters.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#69402: 28.3; checkdoc does not check for docstrings wider than 80 characters
2024-02-26 8:12 bug#69402: 28.3; checkdoc does not check for docstrings wider than 80 characters Tim Landscheidt
@ 2024-02-26 12:53 ` Eli Zaretskii
2025-01-08 6:44 ` Stefan Kangas
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-02-26 12:53 UTC (permalink / raw)
To: Tim Landscheidt; +Cc: 69402
> From: Tim Landscheidt <tim@tim-landscheidt.de>
> Date: Mon, 26 Feb 2024 08:12:17 +0000
>
> IMHO, checkdoc should check that docstrings are no longer
> than 80 (or byte-compile-docstring-max-column) characters.
It does. Add one more long line to the doc string, and you will see
it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#69402: 28.3; checkdoc does not check for docstrings wider than 80 characters
2024-02-26 12:53 ` Eli Zaretskii
@ 2025-01-08 6:44 ` Stefan Kangas
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2025-01-08 6:44 UTC (permalink / raw)
To: Eli Zaretskii, Tim Landscheidt; +Cc: 69402
severity 69402 wishlist
tags 69402 wontfix
close 69402
thanks
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Tim Landscheidt <tim@tim-landscheidt.de>
>> Date: Mon, 26 Feb 2024 08:12:17 +0000
>>
>> IMHO, checkdoc should check that docstrings are no longer
>> than 80 (or byte-compile-docstring-max-column) characters.
>
> It does. Add one more long line to the doc string, and you will see
> it.
I think we would take a patch to fix this minor inconsistency, but it's
not something that we will invest any time in fixing.
I'm therefore closing this bug report now. Sorry.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-08 6:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-26 8:12 bug#69402: 28.3; checkdoc does not check for docstrings wider than 80 characters Tim Landscheidt
2024-02-26 12:53 ` Eli Zaretskii
2025-01-08 6:44 ` Stefan Kangas
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).