emacs-devel
[Top][All Lists]
Advanced

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

Re: Counting sentences in `count-words'


From: Eli Zaretskii
Subject: Re: Counting sentences in `count-words'
Date: Mon, 23 May 2022 14:06:24 +0300

> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Cc: emacs-devel@gnu.org
> Date: Mon, 23 May 2022 10:16:06 +0200
> 
> Visuwesh <visuweshm@gmail.com> 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?



reply via email to

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