Re: Case-insenstive TAGS for FORTRAN etc

Tim Connors <[email protected]> Mon, 7 Jun 2004 18:23:27 +1000 (EST)
Newsgroups gmane.emacs.xemacs.beta,gmane.emacs.xemacs.design
Message-ID <[email protected]>
On Mon, 10 May 2004, Stephen J. Turnbull wrote:

> Moving discussion to xemacs-design.  Reply-To set.
>
> >>>>> "Tim" == Tim Connors <[email protected]> writes:
>
>     Tim> I don't suppose there is an option (or is it feasible to add
>     Tim> an option) to do case insensetive lookups on (find-tag), is
>     Tim> there?
>
> try adding
>
> (defvar tags-are-case-insensitive t)
>
> to etags.el, search for all occurances of 'case-fold-search', replace
> the binding `nil' with the binding `tags-are-case-insensitive' (I
> think they're all let-bindings), and M-x byte-compile-and-load-file
> RET RET.
>
> If that works for you, let us know and we can consider the (slightly)

Yep, that seems to have got it.

> harder problem of arranging that tags are case-insensitive exactly
> when they should be (probably a buffer-local and an addition to the
> mode; main issue is what do you do with mixed-mode programming, where
> a C program calls a FORTRAN subroutine or something like
> that?---ignore it, probably...).

Now the problem is that tags don't seem to understand new Fortran90
constructs - I have some 'pure subroutines' in modules, both of which are
new, and xemacs comes up with 'no tags containing blah'.

Emacs does the same thing -- I noticed the etags.el that comes with emacs
is quite a lot bigger than xemacs's (and seems already to have the
case-fold thing happening). Not knowing how etags works, maybe this is
etags's fault rather than {,x}emacs's etags.el?

-- 
TimC -- http://astronomy.swin.edu.au/staff/tconnors/
        *** System shutdown message from root ***
System going down in 60 seconds