unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53328: 27.2; Doc-string line incorrectly filled (off-by-one bug)
@ 2022-01-17 20:43 Drew Adams
  2022-01-18 18:13 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2022-01-17 20:43 UTC (permalink / raw)
  To: 53328

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)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#53328: 27.2; Doc-string line incorrectly filled (off-by-one bug)
  2022-01-17 20:43 bug#53328: 27.2; Doc-string line incorrectly filled (off-by-one bug) Drew Adams
@ 2022-01-18 18:13 ` Eli Zaretskii
  2022-01-18 19:30   ` bug#53328: [External] : " Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2022-01-18 18:13 UTC (permalink / raw)
  To: Drew Adams; +Cc: 53328

> From: Drew Adams <drew.adams@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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#53328: [External] : Re: bug#53328: 27.2; Doc-string line incorrectly filled (off-by-one bug)
  2022-01-18 18:13 ` Eli Zaretskii
@ 2022-01-18 19:30   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2022-01-18 19:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 53328@debbugs.gnu.org

> 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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-18 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 20:43 bug#53328: 27.2; Doc-string line incorrectly filled (off-by-one bug) Drew Adams
2022-01-18 18:13 ` Eli Zaretskii
2022-01-18 19:30   ` bug#53328: [External] : " Drew Adams

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).