From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 53328@debbugs.gnu.org
Subject: bug#53328: 27.2; Doc-string line incorrectly filled (off-by-one bug)
Date: Tue, 18 Jan 2022 20:13:34 +0200 [thread overview]
Message-ID: <834k60vrn5.fsf@gnu.org> (raw)
In-Reply-To: <SJ0PR10MB54885EE21CD9575CD3AD95E9F3579@SJ0PR10MB5488.namprd10.prod.outlook.com> (message from Drew Adams on Mon, 17 Jan 2022 20:43:21 +0000)
> 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.
next prev parent reply other threads:[~2022-01-18 18:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2022-01-18 19:30 ` bug#53328: [External] : " Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=834k60vrn5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=53328@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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 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).