From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Nicol Newsgroups: gmane.emacs.bugs Subject: bug#47408: Etags support for Mercury [v0.5] Date: Tue, 8 Jun 2021 02:38:12 +0200 Message-ID: References: <70503251-f8ea-9006-b7e7-b13b93bb71de@gmail.com> <838s4gxurw.fsf@gnu.org> <53162dfb-0715-3077-78d1-3a8340943f2f@gmail.com> <838s3y6kaq.fsf@gnu.org> <83k0n7iarj.fsf@gnu.org> <65f059b1-149d-146d-3b8d-36db60ff1044@gmail.com> <87o8cin9fb.fsf@tucano.isti.cnr.it> <39f683d3-65d7-a7d9-18b1-cf6dfa7d254a@gmail.com> <83fsxthnye.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000d626105c436601b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27099"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47408@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 08 02:41:01 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lqPnh-0006rj-0B for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 02:41:01 +0200 Original-Received: from localhost ([::1]:42994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqPnf-0000Bl-RW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 20:40:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqPlm-0004Cg-V0 for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 20:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45485) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqPlm-000878-Il for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 20:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqPlm-0008Nf-Fo for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 20:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Nicol Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Jun 2021 00:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47408 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47408-submit@debbugs.gnu.org id=B47408.162311271232173 (code B ref 47408); Tue, 08 Jun 2021 00:39:02 +0000 Original-Received: (at 47408) by debbugs.gnu.org; 8 Jun 2021 00:38:32 +0000 Original-Received: from localhost ([127.0.0.1]:57031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqPlH-0008Mr-SB for submit@debbugs.gnu.org; Mon, 07 Jun 2021 20:38:32 -0400 Original-Received: from mail-ej1-f50.google.com ([209.85.218.50]:33571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqPlE-0008Ma-Dq for 47408@debbugs.gnu.org; Mon, 07 Jun 2021 20:38:30 -0400 Original-Received: by mail-ej1-f50.google.com with SMTP id g20so29682258ejt.0 for <47408@debbugs.gnu.org>; Mon, 07 Jun 2021 17:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5Yl7MOYc3kMg6bl+Dgsfdw2sm1LSb4KrBpVXvX2M2Pg=; b=s0D9llKwA5ed3+XVsaLi49EUEezgsgKZIfYnaHafxBslKGJANbJSeeLqs/ivi+Kp1E 9CE1SMT4Ul+XolMc8Iyg6mHISWyxzAsvFEtZMbY2TVHoKOOCvCoWc5F363X2slrYVCyF sFOoo1Z42glfFsOfa65e4Nk6KV/4YryqTjQAoW/yPa6TPb6vVujzDIoH3SytTSLQbQrY wEEfJr3sIqEx2ZtTLCvpbpAe3Xw2F5/TYsLNWeeF/3tUGZGPEoJNhoCfp2xVKFjx/aWA T6W6/2NUhm63P+M2WlHxipkBMhBbdgY1VxVEe8zG7oGABH3InEd7lXjRD4FqrKjWgsN7 gUXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5Yl7MOYc3kMg6bl+Dgsfdw2sm1LSb4KrBpVXvX2M2Pg=; b=I8Prjx+gb4NjcnojCSeLq0CzPkLF9+foSYeNqox7obbbKUpHhoZ0Nr5mHbGTMojx0K tUv30Bg3A8/iN4OG1MEIjFHTIkHjXve8GXZwd3x/TjL28arpoE6MJb/tjWzFn4mEj1vU JxZg5WukfkNKN/ilS8kGojUPxaQivgI5dpWPw25sB+GXxSAOlA6QEk1s7E6rbt1CjoX1 neG2LbDQYt7L4jffaGm5NxbHX+6TYrATSYWm64KheDiP8KHR4bgP7agIlr01aRz4ynx8 lT6Wa6rDTo0OtHK/jdLlXjOcwlk8tfjn8QhfZHJgQg/KhmcHNR8O17NDpTfbd0IT3yJW AF4g== X-Gm-Message-State: AOAM531KTnIQmyzXVEeLESYPSII6WuexByKgbQZJ6AHHjbXCh0G/HT2E 42hlOSOWH2lHCtnVdDzvgde/5o8oalJLibRtAco= X-Google-Smtp-Source: ABdhPJy6faZ6qtgE2mXFi3PObL8ehvMQLsj/ggTfp4l1/otP33hvG14VBLyTeDgOvqrg5VsLGM785qFJLo7Firthr5c= X-Received: by 2002:a17:906:c791:: with SMTP id cw17mr19756932ejb.329.1623112702320; Mon, 07 Jun 2021 17:38:22 -0700 (PDT) In-Reply-To: <83fsxthnye.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208206 Archived-At: --0000000000000d626105c436601b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable There is something to be fixed if this is the expected output, as ctags invocation dose not work for Mercury files. I have not looked into the issue yet but the fix should be quite small. Le mar. 8 juin 2021 =C3=A0 2:05 AM, Eli Zaretskii a =C3=A9cr= it : > > Cc: 47408-done@debbugs.gnu.org, Eli Zaretskii > > From: fabrice nicol > > Date: Sun, 6 Jun 2021 22:49:19 +0200 > > > > > That's difficult to tell for me. However, etags provides ctags suppo= rt > > > for all languages it knows about. I may be missing something, but I > > > think Mercury would be the first exception. If that's the case, mayb= e > > > it would be worth adding a comment telling so. > > > > ctags only differs from etags by the fact that its output is > > Vim-compatible. But it so happens that Mercury has superior in-built > > support for Vim tagging (the core team use Vim). So ctags would not > > actually be used by users with Vim-compatibility requirements, they > > would just use Mercury tagging on Vim. > > What do we lose if we make Mercury support active in ctags mode? Do > we even need to add any code for that? > --0000000000000d626105c436601b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
There is something= to be fixed if this is the expected output, as ctags invocation dose not w= ork for Mercury files. I have not looked into the issue yet but the fix sho= uld be quite small.

Le mar. 8 juin 2021 =C3=A0 2:05 AM, Eli Zaretskii= <eliz@gnu.org> a =C3=A9crit=C2= =A0:
> Cc: 47408-done@de= bbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>
> From: fabrice nicol <fabrnicol@gmail.com>
> Date: Sun, 6 Jun 2021 22:49:19 +0200
>
> > That's difficult to tell for me.=C2=A0 However, etags provide= s ctags support
> > for all languages it knows about.=C2=A0 I may be missing somethin= g, but I
> > think Mercury would be the first exception.=C2=A0 If that's t= he case, maybe
> > it would be worth=C2=A0 adding a comment telling so.
>
> ctags only differs from etags by the fact that its output is
> Vim-compatible. But it so happens that Mercury has superior in-built <= br> > support for Vim tagging (the core team use Vim). So ctags would not > actually be used by users with Vim-compatibility requirements, they > would just use Mercury tagging on Vim.

What do we lose if we make Mercury support active in ctags mode?=C2=A0 Do we even need to add any code for that?
--0000000000000d626105c436601b--