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: Mon, 23 May 2022 14:06:24 +0300 Message-ID: <83bkvo7bkf.fsf@gnu.org> References: <87o7zsiekm.fsf@elite.giraud> <83y1yv8cdp.fsf@gnu.org> <878rquizld.fsf@elite.giraud> <83czg694ft.fsf@gnu.org> <87y1ytd9if.fsf@elite.giraud> <87r14lh5lr.fsf@gmail.com> <87mtf8acl5.fsf@elite.giraud> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5767"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Manuel Giraud , Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 23 13:17:23 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 1nt63v-0001Ja-1P for ged-emacs-devel@m.gmane-mx.org; Mon, 23 May 2022 13:17:23 +0200 Original-Received: from localhost ([::1]:36846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt63t-0006QP-Gi for ged-emacs-devel@m.gmane-mx.org; Mon, 23 May 2022 07:17:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt5tY-0007PO-Oy for emacs-devel@gnu.org; Mon, 23 May 2022 07:06:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt5tX-0005no-41; Mon, 23 May 2022 07:06:39 -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=FbB3jwXNia9VcfWPSqQ6UBD1M1g9mZ4C08FuMtEAzGE=; b=fR17Xo++JvXb 3KnM+V2xgbCueX2JJcwLDyzpq290QZ/6wVCeGQ/yydAtfsad9kgm6d1heb2f5mBHIyUqpmpQRg5Qa yRo6wjziFysImqWjhmkfoid0SaTngKtPNbbFBhVYG4r0NBBAEyNYTXacuP4WnG3t6PdNkQTJ9ViQI q2aU7DrKPjhcaS/pPQzCwWqkp0fcDSqWIZaifgKVc1ChmL+D1dwA8XLA+NB6SthdA6tMpRx+WZ+9K 9j6qt8PbsNqvXO5b17ZSe8CWV8SNYFCAJFd+CkhUuIlEK4UEyzO9d751ndJm9fF+fWt2QJ2c6voBx qiAIY1gqDmLLniO+oLMtEg==; Original-Received: from [87.69.77.57] (port=3987 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 1nt5tW-0005gv-7Y; Mon, 23 May 2022 07:06:38 -0400 In-Reply-To: <87mtf8acl5.fsf@elite.giraud> (message from Manuel Giraud on Mon, 23 May 2022 10:16:06 +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:290144 Archived-At: > From: Manuel Giraud > Cc: emacs-devel@gnu.org > Date: Mon, 23 May 2022 10:16:06 +0200 > > Visuwesh writes: > > > 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. > > You're right I could test on the derived mode. But then maybe someone > wants to count sentences in a comment or a docstring. I don't know. I'm not sure we should be bothered by that. After all, "words" doesn't make much more sense when the major mode is for a programming language, either. If we start distinguishing between major modes, we'd need to provide a defcustom for that, etc. etc. I say let's keep it simple. Lars, WDYT?