🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.lisp
Article #23

Re: GNU Emacs native compiled functions

#23
From: Lawrence D’Oliveiro
Date: Mon, 12 Oct 2026 05:55
33 lines
2825 bytes
On Sun, 11 Oct 2026 22:20:04 -0400, steve g wrote:

> 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.

Why, did you think I was?

Clue: I mentioned “stripping all the markup”.

>> Solving the wrong problem, much?
>
> always!
>
> have you tried wc -w ?

Yes, that is even worse than your idea. Which is saying something.
Technical Details
Message-ID: <11ahsoo$3a82n$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.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> <87pkxfirsb.fsf@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.lisp
Subject: Re: GNU Emacs native compiled functions
Date: Mon, 12 Oct 2026 05:55:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <11ahsoo$3a82n$1@dont-email.me>
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> <87pkxfirsb.fsf@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 12 Oct 2026 05:55:38 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3481687"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19R3I7XRIdHYpaqCBwtpAGt"; posting-host="5afb7f6ae0d3013d5ddae53a50b48bb2"
User-Agent: Pan/0.165 (Kostiantynivka)
Cancel-Lock: sha1:BUNpAzXb1yyfGhJbNmzx9qM6Hv0= sha256:QjeiDsexgHKLS7TprsenKw2CAk8Noj4ihpXOfxELKU8=
	sha1:7kuR1nZgYTXYZ3Uzz6rmCkhzsbg= sha256:NiH7Q/5lgU6atCvkBAR0U2G4FhGBD7IsV+GDXALG4to=