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.devel Subject: Re: Counting sentences in `count-words' Date: Sat, 21 May 2022 20:32:54 +0300 Message-ID: <83czg694ft.fsf@gnu.org> References: <87o7zsiekm.fsf@elite.giraud> <83y1yv8cdp.fsf@gnu.org> <878rquizld.fsf@elite.giraud> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4687"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 21 19:33:54 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nsSzB-00014G-02 for ged-emacs-devel@m.gmane-mx.org; Sat, 21 May 2022 19:33:53 +0200 Original-Received: from localhost ([::1]:54462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsSz9-0003PS-L3 for ged-emacs-devel@m.gmane-mx.org; Sat, 21 May 2022 13:33:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsSyV-0002ex-VG for emacs-devel@gnu.org; Sat, 21 May 2022 13:33:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsSyV-0006NB-3Z; Sat, 21 May 2022 13:33:11 -0400 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=eMIAWyo/0DbMEZMlZaZF9yGXflbY1WIG2zXffBdQbjQ=; b=au6quQ9Zjtlq nwIESIffDfsoIgOVaJxJaO84XSQKVXXhs/xP0ufT7wUeXxk01158hZDOM0asv0x5YRa37TrlTWA6M dQ6bMpWF/06pGf0HxzaYIlcLWCOfIxOqh+HJej594sP/CE7Si2kDbF3ORbQXt6Recwm1R91Iz9ENs LtDShJTmqjK2Wxyjf+07bPoQhyhv4B5mmSr9wRdDFZ2fgmfn8CRRkevP8zZ/2aw6Z/+ch9ho0vdFO /FdRGLW2jKTl6NsdnW3XJohiBuEAn/5Yz7kvL/JiWPDPDe+NHcV6Pw59givUsMOd4QrRCZkv2nveI gZY0rC6fll1xM/1E+EekoA==; Original-Received: from [87.69.77.57] (port=2432 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 1nsSyU-0007QM-Il; Sat, 21 May 2022 13:33:10 -0400 In-Reply-To: <878rquizld.fsf@elite.giraud> (message from Manuel Giraud on Sat, 21 May 2022 19:07:26 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:290057 Archived-At: > From: Manuel Giraud > Cc: emacs-devel@gnu.org > Date: Sat, 21 May 2022 19:07:26 +0200 > > In fact, I've just discovered that my counting is not correct (if ! is > the point and @ is the mark): > > !I do. Have. > Three sentences.@ -- count--words --> 3 sentences > > but: > > !I do. Have. > Three sentences. -- count--words --> 4 sentences (and I think it > @ still should be 3) Sounds like you need to make sure each sentence is not a string whose contents is whitespace and nothing else.