GNU bug report logs -
#5624
23.1; etags elisp and scheme "=" in names
Previous Next
Reported by: Kevin Ryde <user42 <at> zip.com.au>
Date: Mon, 22 Feb 2010 22:12:01 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 5624 <at> debbugs.gnu.org (full text, mbox):
Kevin Ryde <user42 <at> zip.com.au> 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.
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.
This bug report was last modified 8 years and 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.