[Top][All Lists]

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

Re: elisp code to list interactive functions

From: Stefan Monnier
Subject: Re: elisp code to list interactive functions
Date: Thu, 04 Nov 2021 16:20:43 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen [2021-11-04 21:15:01] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> (seq-filter #'commandp obarray)
>> Sweet: not only the code is shorter, but the returned value is much
>> shorter as well ;-)
> Win win!
> I thought somebody had extended the seq functions to also work on these
> thingies, but I guess not?

Nope.  I did provide a patch which introduced a separate type for
obarrays, but it come with some rough corners, and in any case it
introduces a backward incompatibility with fairly limited advantages, so
it's not clear it's a good idea.

But until such a thing is done, we can't reliably distinguish an obarray
from a vector.

This said, an obarray is fundamentally unordered, so it would be odd for
`seq.el` to support it.


reply via email to

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