emacs-devel
[Top][All Lists]
Advanced

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

Re: a property "definition-type" would help find macro-defined tests


From: Stephen Gildea
Subject: Re: a property "definition-type" would help find macro-defined tests
Date: Wed, 15 Jan 2025 13:17:11 -0800

Eshel Yaron <me@eshelyaron.com> wrote:

>   I do see a few remaining references to the
>   definition-type property in documentation that we'd probably want to
>   update, namely in functions.text, symbols.texi, tips.text and ert.texi.

The patch I posted updates all the references in those files.

>   BTW I now see that ERT uses both ert--test and ert-deftest
>   in find-function-regexp-alist, which seems like an oversight.
>   That's probably a topic for a separate discussion though :)

Yes, that does look buggy.  It succeeds only because find-function
has a clever fallback.  I'll start a new thread about ERT fixes.

Eli Zaretskii <eliz@gnu.org> wrote:

>   ... shouldn't we document somewhere what form are the elements
>   of this alist?  It is strange to keep this completely semi-documented
>   only by reference to another variable, and only in a doc string of a
>   function.

This bothered me, too.  Looking around the ELisp manual, I
don't see an obvious place.  Perhaps in the node "Defining
Functions".  That might take away from the flow of discussion
of 'defun', 'defalias', and 'defsubst', but I think we could
add a few paragraphs to the end of this section and not overly
burden it.  Other suggestions welcome.

 < Stephen



reply via email to

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