From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: Counting sentences in `count-words' Date: Sun, 22 May 2022 22:22:48 +0530 Message-ID: <87r14lh5lr.fsf@gmail.com> References: <87o7zsiekm.fsf@elite.giraud> <83y1yv8cdp.fsf@gnu.org> <878rquizld.fsf@elite.giraud> <83czg694ft.fsf@gnu.org> <87y1ytd9if.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17493"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 22 19:11:36 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 1nsp7A-0004R1-19 for ged-emacs-devel@m.gmane-mx.org; Sun, 22 May 2022 19:11:36 +0200 Original-Received: from localhost ([::1]:58600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsp78-0005eR-Sm for ged-emacs-devel@m.gmane-mx.org; Sun, 22 May 2022 13:11:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsopT-0001jd-Gu for emacs-devel@gnu.org; Sun, 22 May 2022 12:53:19 -0400 Original-Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:45737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsopR-00089F-7p; Sun, 22 May 2022 12:53:18 -0400 Original-Received: by mail-pf1-x441.google.com with SMTP id b135so3084pfb.12; Sun, 22 May 2022 09:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=psufU6WLxyvHwm5w/1Yvt8Eno8uthC8bVtk+x2ktDF8=; b=HWfrE02/mu+iwah9MH6fWbCQrshs/ileTp50rcFl3/sClN58n7U1E9Y3QuQRi/R0Hl V9zt3aInI3J5UsHe73ZhP0FH1UM6G4lFos99AjsSC8FkXDxYviVzEyZEGOs9piVmB9Dk eNjINTcwfOi7LfWuGMvEcOSNLhXFZOOZpvLQIhGyccz1QPPExZpkE8ErqN2Jy1OxVdBg LEpjwzNwix4ma/QxO9A+DNBQpHSSgINzRJCIp5+pmxfgTkCbeQeSrJvtGIAff2E1nlIz LamSiUOhqnmLHWc0Odm5CqLLHO4XR8x15uwD6+u+0ZXBtLTook7NuANyAlW9M9Q7/UwR X6zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=psufU6WLxyvHwm5w/1Yvt8Eno8uthC8bVtk+x2ktDF8=; b=yhycDJ1+uayN8WlRcU8KmFKasYMT6Mzv1C6qwnRI6/tGDpajMfTHuzUw7GOryovvaT a0qy5BicYblctGuv4AHJ36PqFEcfIPaM+NrOvZLraioMldP+OrmKacvN3Ykeh0wBpuB+ 7/3tXw+KF1uQTOepGC5GKpdcB3nSTdKLRVDHuT2T0sJdPJZ+JYnAtOIKumyJDVQUI8yt wpwyaUn+q5SzBKpW4iMF7QEkE2ndBnuKy9dMwhe4QE9Glp8mMJisnTlCRPHpW4smam35 mMJKzwEVcq32qgOVXZUpxnM2wV6mRikvZ218N88whCsdJcTLvTtcJN3GH3fyZ0IX++X2 DOvA== X-Gm-Message-State: AOAM532J+7dEzdj2RsieAqMTacLm97TOMruS8UOI7syKwIK6A3peWnTS KH2q+ZkQi+nj85PVqbg2g0eyhl8kdGU= X-Google-Smtp-Source: ABdhPJyTWkPwKQnE8V90OfbNY8YcamaZKq9mkzexXfy8hghJ89uUW/y5/2ApnishXXYgWq3cZgJfgg== X-Received: by 2002:a05:6a00:1683:b0:4f7:e497:6a55 with SMTP id k3-20020a056a00168300b004f7e4976a55mr19961602pfc.21.1653238394460; Sun, 22 May 2022 09:53:14 -0700 (PDT) Original-Received: from localhost ([49.204.141.200]) by smtp.gmail.com with ESMTPSA id i124-20020a62c182000000b005187eb4194esm3282816pfg.118.2022.05.22.09.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 09:53:13 -0700 (PDT) Mail-Followup-To: Manuel Giraud , Eli Zaretskii , emacs-devel@gnu.org In-Reply-To: <87y1ytd9if.fsf@elite.giraud> (Manuel Giraud's message of "Sun, 22 May 2022 14:42:00 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::441; envelope-from=visuweshm@gmail.com; helo=mail-pf1-x441.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 22 May 2022 13:10:12 -0400 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:290101 Archived-At: [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=AE=E0=AF=87 = 22, 2022] Manuel Giraud wrote: > Eli Zaretskii writes: > >> Sounds like you need to make sure each sentence is not a string whose >> contents is whitespace and nothing else. > > Hi, > > Here is an updated version of the patch. Does it make sense to count sentences in prog-mode buffers? I think it will needlessly increase the noise when the buffer isn't derived from text-mode.=20=20 With that said, I don't think I will mind it either way since I rarely use `count-words'.