From: Robert Weiner <rsw@gnu.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: FEATURE REQUEST: Make etags recognize 'ert-deftest' by default in .el files
Date: Sat, 23 Jul 2022 18:25:16 -0400 [thread overview]
Message-ID: <CA+OMD9jL+bHRid4EKb8Mknh=xOTpV+4BA9hSjpQE6+4W9RC7jg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 768 bytes --]
ert.el is a standard testing framework in Emacs which uses 'ert-deftest' to
define test functions. Because it does not begin with 'def', it is not
recognized as a definition by etags and libraries or packages with many
tests will not have these show up for navigation when using default calls
to etags.
I would suggest one of two solutions:
1. Modify etags to automatically recognize such definitions by default.
(I tried using the --regex option but had little luck with that due to it
not liking an opening paren without a closing one in the regex).
2. Add an alias of 'def-ert-test' and suggest people use that instead so
that it is picked up by etags. #1 is obviously better given the number of
existing test definitions that exist already.
Cheers,
-- rsw
[-- Attachment #2: Type: text/html, Size: 1705 bytes --]
next reply other threads:[~2022-07-23 22:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-23 22:25 Robert Weiner [this message]
2022-07-24 5:46 ` FEATURE REQUEST: Make etags recognize 'ert-deftest' by default in .el files Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+OMD9jL+bHRid4EKb8Mknh=xOTpV+4BA9hSjpQE6+4W9RC7jg@mail.gmail.com' \
--to=rsw@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rswgnu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).