From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: FEATURE REQUEST: Make etags recognize 'ert-deftest' by default in .el files Date: Sat, 23 Jul 2022 18:25:16 -0400 Message-ID: Reply-To: rswgnu@gmail.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005e9d5c05e4806e11" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32434"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 24 00:26:50 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFNaD-0008Hz-UI for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Jul 2022 00:26:50 +0200 Original-Received: from localhost ([::1]:55496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFNaB-0000QN-SY for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 18:26:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFNZ9-00086u-A3 for emacs-devel@gnu.org; Sat, 23 Jul 2022 18:25:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFNZ9-0000KF-0n for emacs-devel@gnu.org; Sat, 23 Jul 2022 18:25:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=To:Subject:Date:From:MIME-Version:in-reply-to: references; bh=aT91ZOfwjtjpzB0XMl0xcLFdXu+bci3eRuzS13fb/n8=; b=UVwwRNOA7svK/X SFcu3QtLdRmLrPwfiDwlc1oWEgslmbGSbLGc8ECnFTkxfF4Xm2MyDttR7COfj5OGbMDXPGMKMJAmu npf8Lm/IXHrG+TG7Gbp+OGP4bTR2l7dXemb8ELFMnqPwM0qLxvl7vMkJst5SqvD9/KXXulmYWHmT/ FRWtts/mgJMTBxstDdO6MvaHzT3Nit6Nt7qOaCsaiucIwVehcKLEvIZ4xlKKrjM6tD2GWH+hha1qu hTBVb0C/ABBP5IvYbMEVYh7MxNemuS3sIyHzbO+0XD0LZ03byL4HxjlOgt75jOLamd9tVEOkkZH+3 Rrpe9lSrHNZR/Mukfz8Q==; Original-Received: from mail-yw1-f177.google.com ([209.85.128.177]:40561) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFNZ8-00086B-Pu for emacs-devel@gnu.org; Sat, 23 Jul 2022 18:25:42 -0400 Original-Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-31d85f82f0bso77900957b3.7 for ; Sat, 23 Jul 2022 15:25:42 -0700 (PDT) X-Gm-Message-State: AJIora+AIdWty1kEkjPbBbiZNL/NbS6j3pOkuHdufFCD+vwCa3OVQwZo maAsZVm1ZLitdqe8QeGy7HpmMLpBnMs1nf6mE2Y= X-Google-Smtp-Source: AGRyM1tuzX2ZGoG3l1yC9UPoE1kQdIDK4BkB6nN4FTqQ4qq7Af53JcvzYECyHQha1I9uEJjotES0ppByGtrlsAw2SOc= X-Received: by 2002:a0d:dfd6:0:b0:31e:7915:1653 with SMTP id i205-20020a0ddfd6000000b0031e79151653mr4978459ywe.105.1658615142192; Sat, 23 Jul 2022 15:25:42 -0700 (PDT) X-Gmail-Original-Message-ID: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292553 Archived-At: --0000000000005e9d5c05e4806e11 Content-Type: text/plain; charset="UTF-8" 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 --0000000000005e9d5c05e4806e11 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
ert.el is a standard testing framework in Emacs which uses = 9;ert-deftest' to define test functions.=C2=A0 Because it does not begi= n with 'def', it is not recognized as a definition by etags and lib= raries or packages with many tests will not have these show up for navigati= on when using default calls to etags.

I would suggest one of two sol= utions:

1.=C2=A0 Modify etags to automatically recognize such defini= tions by default.=C2=A0 (I tried using the --regex option but had little lu= ck 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 p= eople use that instead so that it is picked up by etags.=C2=A0 #1 is obviou= sly better given the number of existing test definitions that exist already= .

Cheers,

-- rsw
--0000000000005e9d5c05e4806e11--