From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: etags.el tags-search use global syntax table Date: Thu, 19 Jul 2007 00:25:28 -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 1184819114 19414 80.91.229.12 (19 Jul 2007 04:25:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2007 04:25:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Francesco Potorti` Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 19 06:25:12 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IBNZf-0000l9-SF for ged-emacs-devel@m.gmane.org; Thu, 19 Jul 2007 06:25:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBNZf-00064c-9W for ged-emacs-devel@m.gmane.org; Thu, 19 Jul 2007 00:25:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBNYs-0005A3-Pk for emacs-devel@gnu.org; Thu, 19 Jul 2007 00:24:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBNYr-00057w-1v for emacs-devel@gnu.org; Thu, 19 Jul 2007 00:24:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBNYq-00057d-Qf for emacs-devel@gnu.org; Thu, 19 Jul 2007 00:24:20 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBNYq-0006hX-IR for emacs-devel@gnu.org; Thu, 19 Jul 2007 00:24:20 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IBNZw-0001l4-AQ; Thu, 19 Jul 2007 00:25:28 -0400 In-reply-to: (message from Francesco Potorti` on Wed, 18 Jul 2007 14:54:11 +0200) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75107 Archived-At: 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. That is not always right. If you want to fix this, I'm sure you could make etags first look up auto-mode-alist manually, without actually setting the major mode, then have its own alist mapping mode functions into syntax tables. Or it could actually apply the major mode. That might still be a lot faster than visiting the file. If (get MODE 'mode-class) is `special' then it would not apply the major mode. You could try that, and see if the slowdown is enough to be a real reason not to do it.