emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39778: closed ([PATCH] checkdoc: Don't mistake "cf." for sentence en


From: GNU bug Tracking System
Subject: bug#39778: closed ([PATCH] checkdoc: Don't mistake "cf." for sentence end)
Date: Fri, 28 Feb 2020 13:21:02 +0000

Your message dated Fri, 28 Feb 2020 15:19:45 +0200
with message-id <address@hidden>
and subject line Re: bug#39778: [PATCH] checkdoc: Don't mistake "cf." for 
sentence end
has caused the debbugs.gnu.org bug report #39778,
regarding [PATCH] checkdoc: Don't mistake "cf." for sentence end
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
39778: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39778
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] checkdoc: Don't mistake "cf." for sentence end Date: Tue, 25 Feb 2020 13:22:16 +0100 User-agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu)
"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.".

-- 
Štěpán

>From bb705cf2425537b91dd39d24689bb2dbb378f73d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= <address@hidden>
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


--- End Message ---
--- Begin Message --- Subject: Re: bug#39778: [PATCH] checkdoc: Don't mistake "cf." for sentence end Date: Fri, 28 Feb 2020 15:19:45 +0200
> From: Štěpán Němec
>  <address@hidden>
> Date: Tue, 25 Feb 2020 13:22:16 +0100
> 
> "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.".

Thanks, I installed this on the emacs-27 branch.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]