From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: etags.el tags-search use global syntax table Date: Wed, 18 Jul 2007 00:41:51 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1184733681 10296 80.91.229.12 (18 Jul 2007 04:41:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2007 04:41:21 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Francesco Potorti` Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 18 06:41:19 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IB1Lj-0004JL-10 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2007 06:41:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IB1Li-00066P-Jf for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2007 00:41:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IB1LG-0005sQ-5J for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2007 00:40:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IB1LF-0005ro-Ht for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2007 00:40:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IB1LF-0005ri-D4 for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2007 00:40:49 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IB1LF-0002R8-46 for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2007 00:40:49 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IB1MF-0008Id-Cg; Wed, 18 Jul 2007 00:41:51 -0400 In-reply-to: (message from Francesco Potorti` on Tue, 17 Jul 2007 13:48:43 +0200) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16170 Archived-At: 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.