all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* etags - Word separators with xref-find-definitions
@ 2021-07-25  8:56 Christian Barthel
  2021-07-25 14:02 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Barthel @ 2021-07-25  8:56 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am using a TAGS file with a custom regex for SQL function, view
and table definitions.  At the moment, I am using this:

--8<---------------cut here---------------start------------->8---
etags --language=none \
   --regex='/[ \t]*create\( or replace\)*[ \t][ \t]*\(function\|view\|table\)[ \t]*\([^ (]*\)/\3/i'
   *.sql
--8<---------------cut here---------------end--------------->8---

The TAGS file contains identifiers like ‘schema.objectname’.
However, when I am trying to use M-. (xref-find-definitions), it
either searches for ‘schema’ or ‘objectname’ (depending on the
location of the point).

Is it possible to customize the xref function such that it
recognize ‘schema.objectname’?  Are there any variables to
control the behavior of M-. ?

(Something similar happens for LaTeX references:  I am using
\label{chapter:foobar}, but the : is lost and I can’t easily jump
to the reference)

My current workaround is to use C-u M-. and enter the name
manually but it would be nicer to directly jump to the definition.

Thanks!
-- 
Christian Barthel



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-26 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-25  8:56 etags - Word separators with xref-find-definitions Christian Barthel
2021-07-25 14:02 ` Eli Zaretskii
2021-07-25 17:52   ` Christian Barthel
2021-07-25 19:04     ` Eli Zaretskii
2021-07-26 14:45     ` Leo Butler

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.