unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Andreas Matthias <andreas.matthias@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: find-tag
Date: Sat, 14 Nov 2015 16:25:44 +0100	[thread overview]
Message-ID: <oc0khc-fg8.ln1@winky.hogwarts> (raw)
In-Reply-To: inkchc-pbh.ln1@winky.hogwarts

Andreas Matthias wrote:

> I'm trying to `find-tag' a function named `foo.bar' but it seems
> to be impossible to find function names containing a period.
> The name is definitely listed in the TAGS file but is not found
> by `find-tag'. Am I missing something?

Digging through the code of etags.el I found etags-tags-completion-table which
contains a large regex used for parsing the TAGS file. In this regex there
are three character groups like

   [-a-zA-Z0-9_+*$:]

This seems to be the reason why function names containing periods are not
found. If I add the period in these character groups

   [-.a-zA-Z0-9_+*$:]

then `find-tag' finds function names like `foo.bar' (quite common names in Lua).

Are there reasons why the period was omitted in this regex?


Andreas


  reply	other threads:[~2015-11-14 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 20:23 find-tag Andreas Matthias
2015-11-14 15:25 ` Andreas Matthias [this message]
2015-11-15 20:38   ` find-tag Eli Zaretskii
2015-11-16  0:14   ` find-tag Dmitry Gutov

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=oc0khc-fg8.ln1@winky.hogwarts \
    --to=andreas.matthias@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).