From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5624: 23.1; etags elisp and scheme "=" in names Date: Sun, 11 Jun 2017 17:52:48 +0300 Message-ID: <83poea60fz.fsf@gnu.org> References: <87eikcrkg8.fsf@blah.blah> <878tkztic2.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1497192853 11348 195.159.176.226 (11 Jun 2017 14:54:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Jun 2017 14:54:13 +0000 (UTC) Cc: 5624@debbugs.gnu.org, user42@zip.com.au To: Alex Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 11 16:54:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dK4Fk-0002f6-Pb for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Jun 2017 16:54:08 +0200 Original-Received: from localhost ([::1]:34254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dK4Fo-0006yj-KY for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Jun 2017 10:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dK4Fj-0006yc-3t for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2017 10:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dK4Fe-0002gJ-B9 for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2017 10:54:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38570) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dK4Fe-0002gF-7T for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2017 10:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dK4Fe-00016u-0P for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2017 10:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Jun 2017 14:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5624 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5624-submit@debbugs.gnu.org id=B5624.14971927964214 (code B ref 5624); Sun, 11 Jun 2017 14:54:01 +0000 Original-Received: (at 5624) by debbugs.gnu.org; 11 Jun 2017 14:53:16 +0000 Original-Received: from localhost ([127.0.0.1]:41247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dK4Eu-00015u-12 for submit@debbugs.gnu.org; Sun, 11 Jun 2017 10:53:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dK4Er-00015g-I9 for 5624@debbugs.gnu.org; Sun, 11 Jun 2017 10:53:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dK4Eg-00024G-Qh for 5624@debbugs.gnu.org; Sun, 11 Jun 2017 10:53:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dK4Eg-000246-Ms; Sun, 11 Jun 2017 10:53:02 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2173 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dK4Ef-0002nT-O6; Sun, 11 Jun 2017 10:53:02 -0400 In-reply-to: <878tkztic2.fsf@gmail.com> (message from Alex on Sat, 10 Jun 2017 19:37:49 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133474 Archived-At: > From: Alex > Date: Sat, 10 Jun 2017 19:37:49 -0600 > Cc: 5624@debbugs.gnu.org > > Kevin Ryde writes: > > > If an elisp defun has an "=" char in its name, etags stops at that point > > and the TAGS file doesn't have the whole name. Eg. a foo.el containing > > > > (defun foo==bar () (message "hi")) > > > > M-. foo==bar gives > > > > No tags containing foo==bar > > > > The same seems to be true of scheme, eg. a foo.scm containing a similar > > > > (define foo==bar 123) > > > > The way the tag line comes out means a single "=" at the end of a name, > > or any number of them at the start of a name, ends up working, but I > > believe it's legal (if unusual) to have them in the middle of a name > > too. > > This appears to be because in etags.c, all languages use the same > `notinname' procedure to determine a valid identifier. Yes. But there are exceptions from this rule, where that is deemed necessary. For example, Ruby_functions has this: /* Ruby method names can end in a '='. Also, operator overloading can define operators whose names include '='. */ while (!notinname (*cp) || *cp == '=') cp++; > Shouldn't each language (optionally) use a different procedure to > determine the bounds of an identifier? Lisp and Scheme, for instance, > would not have '=' in their respective `notinname' procedures. Feel free to work on this, if you want to scratch that particular itch. Alternatively, just augment notinname in language-specific support code, like some of the supported languages already do. TIA.