all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Prolog TAGS -- how to detect facts as well as clauses.
@ 2003-01-17 14:21 Tim Morley (remove vegetable for email address)
  0 siblings, 0 replies; only message in thread
From: Tim Morley (remove vegetable for email address) @ 2003-01-17 14:21 UTC (permalink / 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?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-17 14:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-17 14:21 Prolog TAGS -- how to detect facts as well as clauses Tim Morley (remove vegetable for email address)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.