From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: find-tag Date: Sun, 15 Nov 2015 22:38:05 +0200 Message-ID: <83fv07c82a.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1447708667 21723 80.91.229.3 (16 Nov 2015 21:17:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 21:17:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 16 22:17:39 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZyR9e-0008KR-GB for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 22:17:38 +0100 Original-Received: from localhost ([::1]:49639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyR9d-0006pL-RX for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 16:17:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zy440-00019x-9s for help-gnu-emacs@gnu.org; Sun, 15 Nov 2015 15:38:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zy43w-0004wb-9e for help-gnu-emacs@gnu.org; Sun, 15 Nov 2015 15:38:16 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:36184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zy43w-0004wR-1D for help-gnu-emacs@gnu.org; Sun, 15 Nov 2015 15:38:12 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NXV00M00I5PQU00@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Sun, 15 Nov 2015 22:37:05 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXV00FANILSKL80@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Sun, 15 Nov 2015 22:37:05 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108093 Archived-At: > From: Andreas Matthias > Date: Sat, 14 Nov 2015 16:25:44 +0100 > > 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? So is the problem with completion or with finding tags that include a period (or both)? In any case, I suggest to report all this, including a sample Lua source file, using "M-x report-emacs-bug RET", and let the developers decide whether this is a bug and how to fix it. Thanks.