From: "Tim Morley \(remove vegetable for email address\)" <tim@teamlog.turnip.com>
Subject: Prolog TAGS -- how to detect facts as well as clauses.
Date: Fri, 17 Jan 2003 15:21:07 +0100 [thread overview]
Message-ID: <b093ef$v7q$1@s1.read.news.oleane.net> (raw)
I use M-. a lot while writing Prolog in Emacs to find definitions of
predicates. What I would like, though, is also to be able to find *facts*,
preferably using the same keyboard shortcut.
Illustration: say I have the following predicate:
foo(X, Z) :-
first(X, Y),
second(Y, Z).
I want to find out what first/2 does, so I do a M-. first RET and it takes
me to the definition of first, whatever file it's in within the project:
first(X,Y) :-
(X>2 -> Y=true ; Y=false).
However, if first/2 is just a fact, or a series of facts:
first(1, false).
first(2, false).
first(3, true).
first(4, true).
then M-. doesn't find it.
Is there a parameter I can change in etags to be able to find facts from the
TAGS table?
reply other threads:[~2003-01-17 14:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='b093ef$v7q$1@s1.read.news.oleane.net' \
--to=tim@teamlog.turnip.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.
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).