GNU bug report logs -
#47408
Emacs etags support for Mercury [v0.2]
Previous Next
Reported by: fabrice nicol <fabrnicol <at> gmail.com>
Date: Fri, 26 Mar 2021 08:28:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>:- some [T] pred unravel_univ(univ::in, T::out) is det.
>
>Your fix incorrectly outputs such quantified predicates. For example on
>tagging univ.m (attached), your commit version yields:
>
>:- some [T] pred unravel_univ(^?[T] pred unravel_univ^A141,4333
>
>whilst my original code yields the correct tag:
>
>:- some [T] pred unravel_univ(^?141,4333
The first tag is a named tag, as described in etc/ETAGS.EBNF. Why do
you say it is incorrect? Does etags.el behave badly with that tag?
While the automatically generated explicit tag name should do no harm,
if you generate a moreappropriate tag name that should improve
functionality. In this case, I suspect that the tag name should be in
fact "unravel_univ" rather than "pred unravel_univ".
In short:
1) the first tag is anamed tag, and should behave essentially like the
second, probably providing more resilience against code changes, so
it shuld be the preferred way to generate a tag
2) this can be further improved with knowledge of the tagged langage:
rather than relying on etags to autometically generate a name, the
code should ideally provide the correct name
This bug report was last modified 3 years and 338 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.