emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: etags.el tags-search use global syntax table


From: Francesco Potorti`
Subject: Re: etags.el tags-search use global syntax table
Date: Wed, 18 Jul 2007 14:54:11 +0200

>    The reason is that the next-file function in etags.el loads non-visited
>    files in a temporary buffer with insert-file-contents, rather than using
>    find-file, so the mode remains Fundamental.  I am not sure why it is so.
>
>There are two reasons for this.  One is that some major modes can be
>rather intrusive in what they do.  The other is that visiting a file
>is much slower.
>
>Of course, it was all based on the idea that it wouldn't really matter
>for searching, and if it actually finds a match, then it visits the
>file properly.  This bug shows that the major mode does matter in some
>cases for searching.
>
>I am not sure whether it is better to fix this bug or not.
>If it is a big slowdown, we are better off not fixing it.

A reasonable compromise would be using for searching the same syntax
table of the buffer that is current when the tags-search command is
issued.  This would not work in various situations, but would work in
most cases, and probably would work in many more cases than the current
situation.

If nothing smarter comes up and no one does it first, I'll try to
implement that in the next days.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]