🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.lisp
Article #21

Re: GNU Emacs native compiled functions

#21
From: steve g
Date: Mon, 12 Oct 2026 02:20
32 lines
2893 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> writes:

> On Sat, 10 Oct 2026 19:14:48 -0400, steve g wrote:
>
>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>>
>>> For example, how would you deal with this, for counting words in an
>>> HTML page after stripping all the markup (from
>>> <https://gitlab.com/ldo/emacs-prefs>):
>>
>> M-x count-words
>
> Tried it on a test HTML file I had handy.
>
> M-x count words reports a count of 10370.
> My code reports a count of 9564.

Not to be an asshole, but I can be; what do you mean by words? Usually
counting spaces does not qualify.

> Solving the wrong problem, much?

always!

have you tried wc -w ? I get the same result from wc -l and count-lines.
and the same result from wc -w from count-words. Most people do not
consider a words less than 3 letters or sum such.




Technical Details
Message-ID: <87pkxfirsb.fsf@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-2.nntp.ord.giganews.com!local-3.nntp.ord.giganews.com!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <113ovuj$23t9c$1@dont-email.me> <114kain$3erqe$1@dont-email.me> <114oc02$qbqp$1@dont-email.me> <114odai$qp0b$1@dont-email.me> <114piou$14lmv$2@dont-email.me> <114pno3$16g53$1@dont-email.me> <114pqg5$17lne$1@dont-email.me> <5T_bS.71191$4Fu9.56234@fx05.ams4> <27248.58134.739884.512819@parhasard.net> <87v78mz15a.fsf_-_@debian> <m3h5k5n2au.fsf@pison.robolove.meer.net> <87wlsmo83m.fsf@debian> <m3tsno4bob.fsf@pison.robolove.meer.net> <jwveceqwtg2.fsf-monnier+comp.lang.lisp@gnu.org> <118kcc1$1mri1$2@dont-email.me> <87wlrvendh.fsf@gmail.com> <20261005164228.546@kylheku.com> <jwvo6d7hv2g.fsf-monnier+comp.lang.lisp@gnu.org> <11a3mvl$29qvc$1@dont-email.me> <877bjp172v.fsf@gmail.com> <11aelre$27968$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-2.nntp.ord.giganews.com!local-3.nntp.ord.giganews.com!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 12 Oct 2026 02:20:05 +0000
From: steve g <Sgonedes1977@gmail.com>
Newsgroups: comp.lang.lisp
Subject: Re: GNU Emacs native compiled functions
References: <113ovuj$23t9c$1@dont-email.me> <114kain$3erqe$1@dont-email.me>
	<114oc02$qbqp$1@dont-email.me> <114odai$qp0b$1@dont-email.me>
	<114piou$14lmv$2@dont-email.me> <114pno3$16g53$1@dont-email.me>
	<114pqg5$17lne$1@dont-email.me> <5T_bS.71191$4Fu9.56234@fx05.ams4>
	<27248.58134.739884.512819@parhasard.net> <87v78mz15a.fsf_-_@debian>
	<m3h5k5n2au.fsf@pison.robolove.meer.net> <87wlsmo83m.fsf@debian>
	<m3tsno4bob.fsf@pison.robolove.meer.net>
	<jwveceqwtg2.fsf-monnier+comp.lang.lisp@gnu.org>
	<118kcc1$1mri1$2@dont-email.me> <87wlrvendh.fsf@gmail.com>
	<20261005164228.546@kylheku.com>
	<jwvo6d7hv2g.fsf-monnier+comp.lang.lisp@gnu.org>
	<11a3mvl$29qvc$1@dont-email.me> <877bjp172v.fsf@gmail.com>
	<11aelre$27968$1@dont-email.me>
Date: Sun, 11 Oct 2026 22:20:04 -0400
Message-ID: <87pkxfirsb.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:HqcrqLU2J5xS6DuNywdvf/PVxH8=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Lines: 32
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-c5K1g1HmPMa4GdzUnPhIjTJVrAT965ohkS8yxpZzcnB+kIngnhnCMfSYYSGWQY9FTdjYMfQlr+CxFmT!BQyBddzQgQmUsmGKViE06CAdCQ8p0ydGKviIlE7gmf5wcFQ=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40