From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#39778: [PATCH] checkdoc: Don't mistake "cf." for sentence end Date: Tue, 25 Feb 2020 13:22:16 +0100 Message-ID: <877e0aambr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="27884"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: 39778@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 25 14:01:21 2020 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 1j6Zpw-0007Au-Nm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Feb 2020 14:01:20 +0100 Original-Received: from localhost ([::1]:55106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6Zpv-00036Z-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Feb 2020 08:01:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55198) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6ZEu-0006gm-0D for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:23:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6ZEt-0004tw-0r for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:23:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6ZEs-0004td-TV for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6ZEs-0005yL-Hg for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2020 12:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158263333622881 (code B ref -1); Tue, 25 Feb 2020 12:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Feb 2020 12:22:16 +0000 Original-Received: from localhost ([127.0.0.1]:54499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6ZE8-0005wz-0J for submit@debbugs.gnu.org; Tue, 25 Feb 2020 07:22:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:60050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6ZE6-0005ws-UW for submit@debbugs.gnu.org; Tue, 25 Feb 2020 07:22:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55097) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6ZE5-0004oa-R2 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:22:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6ZE4-0004NQ-NH for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:22:13 -0500 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:35544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6ZE4-0004Mb-Db for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:22:12 -0500 Original-Received: by mail-lj1-x236.google.com with SMTP id q8so13785022ljb.2 for ; Tue, 25 Feb 2020 04:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:user-agent:date:message-id:mime-version; bh=YcOJhF2d+m4/S3ec1X0C4v38i4ozFT/crw/N/L2mf0s=; b=gaZ94h0lU9Ap6PtIrc32/TlTDcaQZvlgn7rd7QJDDKZZjvxshe1wAQ1lkvDbIX0UwR T9fo+/wfZTaVeTw6KgvG84D6XpjovnEe1C4Y3I4D9lowfJ3ZNjxYBd/qsOk2fuGvGAiy Ru363w7dwtxiB15qLoHbwZKvY60+yJRkQ3vZQf3dUnSin0xFubb2VgQim3UekalawUiO td3qMFSb11sbCuCqNmE1E2nL7WZhiESTgTeFBW3xNunrGlkxtDfA09e5IDBdWhxbkHvd N96eQmMsush6mFW0kA7xTKkaJLKdgKZkqkuU0Y7wLJB3rADt3ccmWsxoVQ5IzSwxeI1N frLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:user-agent:date:message-id :mime-version; bh=YcOJhF2d+m4/S3ec1X0C4v38i4ozFT/crw/N/L2mf0s=; b=iRuVMfadYxDMsdGyhb8Ts+69fvjQnhAJsJr6tX4S6yEFjIdyYWKg5NvNCEfGcDVvcd Cgj5R7o/ZcSuz+o7FdYHvE/njgUxnU9BvIDf/kQY6j49FmW0xugg8Hei374j0r1rJ4VD 3IHd3NZWb1H7k5hriHyjnczZXyzb1Zsxe3azyOML078504wErxD5knGG2SnEefvb2za4 PrG6q/y3PzRpDBD7AaiWgMkjqn50vUBY0DFG0fmyk7S02V6UxnGiD9W4dpd2yIaP0ylo qIthu42ZJ0h9rSu8kc08POJkV+ZKzxOM5BgJLlcGHw5VYz6Vv/OC8wnLHjEsAHl0/gN5 F9cA== X-Gm-Message-State: APjAAAXHCPZqcXk1oatypuWgkaE975uSRUlosT8g5upbDU+tYMJLy4WB Gbgtm/BC0fsQiG/rOs8YhedIC6mz X-Google-Smtp-Source: APXvYqzRhfRFuSINPzkNprgukRwsRp7nqFlDQ8+r6FBAPrNDtNTg2GBIEkmp4xmogD9p824esWMs/g== X-Received: by 2002:a2e:96c4:: with SMTP id d4mr34349527ljj.225.1582633330588; Tue, 25 Feb 2020 04:22:10 -0800 (PST) Original-Received: from localhost ([185.112.167.59]) by smtp.gmail.com with ESMTPSA id h14sm1997219lfj.29.2020.02.25.04.22.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 04:22:09 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176461 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Cf." is a common abbreviation in documentation. Currently checkdoc warns about lack of double space after "cf." or "Cf.". The attached patch adds an exception similar to the already handled "eg." and and "ie.". --=20 =C5=A0t=C4=9Bp=C3=A1n --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-checkdoc-Don-t-mistake-cf.-for-sentence-end.patch >From bb705cf2425537b91dd39d24689bb2dbb378f73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Thu, 29 Aug 2019 19:42:21 +0200 Subject: [PATCH] checkdoc: Don't mistake "cf." for sentence end * lisp/emacs-lisp/checkdoc.el (checkdoc-sentencespace-region-engine): Recognize "cf." as an abbreviation, not a sentence end. --- lisp/emacs-lisp/checkdoc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index ccdddb47c3..e15836ee7d 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el @@ -2073,7 +2073,7 @@ checkdoc-sentencespace-region-engine ;; piece of an abbreviation ;; FIXME etc (looking-at - "\\([a-zA-Z]\\|[iI]\\.?e\\|[eE]\\.?g\\)\\.")) + "\\([a-zA-Z]\\|[iI]\\.?e\\|[eE]\\.?g\\|[cC]f\\)\\.")) (error t)))) (if (checkdoc-autofix-ask-replace b e -- 2.25.1 --=-=-=--