From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53328: 27.2; Doc-string line incorrectly filled (off-by-one bug) Date: Tue, 18 Jan 2022 20:13:34 +0200 Message-ID: <834k60vrn5.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3713"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53328@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 18 19:14:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9szp-0000lQ-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Jan 2022 19:14:17 +0100 Original-Received: from localhost ([::1]:46974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9szo-0007yn-5f for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Jan 2022 13:14:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9sza-0007yQ-EM for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2022 13:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9sza-0006Ud-4j for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2022 13:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9szZ-0000eQ-VA for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2022 13:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Jan 2022 18:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53328 X-GNU-PR-Package: emacs Original-Received: via spool by 53328-submit@debbugs.gnu.org id=B53328.16425296292475 (code B ref 53328); Tue, 18 Jan 2022 18:14:01 +0000 Original-Received: (at 53328) by debbugs.gnu.org; 18 Jan 2022 18:13:49 +0000 Original-Received: from localhost ([127.0.0.1]:51657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9szN-0000dr-Au for submit@debbugs.gnu.org; Tue, 18 Jan 2022 13:13:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9szK-0000db-JZ for 53328@debbugs.gnu.org; Tue, 18 Jan 2022 13:13:48 -0500 Original-Received: from [2001:470:142:3::e] (port=43160 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9szF-0006RD-A6; Tue, 18 Jan 2022 13:13:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mWFbvBhcUyG2NIMJbzBTbQPgnEt7xvCWllrGeJe1l/c=; b=octPwwTkSAef 85VvJr2EACtWBCogUZ5QbUCLo0/9C28p9RHcxNOcgRmmyN7iCG/wiDoO6s7Y/WwXcE+jR8da/rpgm HMKJUjN3YtSGkTkMl7IXcUQgoSLgQRwF3GxQ4zPbizbJaYTVW5zWO3k7bGtZdwMVZ1jIPtVZ17KzB SFjs3SCN5Ul9Fy2NvDLRak0Oo9jR7rWTPQ43oiFoo/l3eSPf936TTBkrqw/KoUo4rQrKOmMR9UbXP 2uz9ta4/Vkav5WIvbxu8VUbLrLhKuug5gon8xT3D9epIAAVMoSMQXYIkrC9g+OigYn599EfyeIE56 6SDO55yYr5kJzCiM9yjmHg==; Original-Received: from [87.69.77.57] (port=2965 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9szF-0005Lq-D9; Tue, 18 Jan 2022 13:13:41 -0500 In-Reply-To: (message from Drew Adams on Mon, 17 Jan 2022 20:43:21 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:224519 Archived-At: > From: Drew Adams > 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.