GNU bug report logs -
#53328
27.2; Doc-string line incorrectly filled (off-by-one bug)
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 17 Jan 2022 20:44:01 UTC
Severity: normal
Found in version 27.2
Done: Drew Adams <drew.adams <at> oracle.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53328 in the body.
You can then email your comments to 53328 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#53328
; Package
emacs
.
(Mon, 17 Jan 2022 20:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 17 Jan 2022 20:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
emacs -Q
(defface foo
'((t :background "Green"))
"Face used to @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
xxxxx xxxxxxxxxxx xxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxx xxxxxx yyyyyyy."
:group 'faces)
Put point at the beginning of the second doc-string line.
`M-q'
That second line is filled by inserting a newline char before `yyyyyyy'.
The line should not be split - it is 70 chars, which is allowed by
convention.
The problem seems to be an off-by-one bug. The double-quote char ending
the string is perhaps being counted, as if it were part of the doc
string.
In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
of 2021-03-26 built on CIRROCUMULUS
Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.19043
System Description: Microsoft Windows 10 Pro (v10.0.2009.19043.1466)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#53328
; Package
emacs
.
(Tue, 18 Jan 2022 18:14:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 53328 <at> debbugs.gnu.org (full text, mbox):
> From: Drew Adams <drew.adams <at> oracle.com>
> Date: Mon, 17 Jan 2022 20:43:21 +0000
>
> emacs -Q
>
> (defface foo
> '((t :background "Green"))
> "Face used to @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> xxxxx xxxxxxxxxxx xxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxx xxxxxx yyyyyyy."
> :group 'faces)
>
> Put point at the beginning of the second doc-string line.
>
> `M-q'
>
> That second line is filled by inserting a newline char before `yyyyyyy'.
> The line should not be split - it is 70 chars, which is allowed by
> convention.
>
> The problem seems to be an off-by-one bug. The double-quote char ending
> the string is perhaps being counted, as if it were part of the doc
> string.
What command is bound to M-q in this case on your system? Here it is
fill-paragraph, and that command knows nothing about Lisp doc strings.
For it, this is just plain text.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#53328
; Package
emacs
.
(Tue, 18 Jan 2022 19:31:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 53328 <at> debbugs.gnu.org (full text, mbox):
> What command is bound to M-q in this case on your system? Here it is
> fill-paragraph, and that command knows nothing about Lisp doc strings.
> For it, this is just plain text.
Right. It's fill-paragraph here, too.
I closed this report. Thx.
bug closed, send any further explanations to
53328 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Drew Adams <drew.adams <at> oracle.com>
to
control <at> debbugs.gnu.org
.
(Tue, 18 Jan 2022 19:31:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 16 Feb 2022 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 42 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.