From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francesco Potorti` Newsgroups: gmane.emacs.devel Subject: Re: etags.el tags-search use global syntax table Date: Wed, 18 Jul 2007 16:21:42 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1184768574 26426 80.91.229.12 (18 Jul 2007 14:22:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2007 14:22:54 +0000 (UTC) Cc: rms@gnu.org, Emacs developers To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 18 16:22:52 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 1IBAQW-0007hc-8T for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 16:22:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBAQV-0001yX-KW for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 10:22:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBAQS-0001wM-7k for emacs-devel@gnu.org; Wed, 18 Jul 2007 10:22:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBAQQ-0001r4-2Q for emacs-devel@gnu.org; Wed, 18 Jul 2007 10:22:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBAQP-0001qm-VR for emacs-devel@gnu.org; Wed, 18 Jul 2007 10:22:45 -0400 Original-Received: from mx1.isti.cnr.it ([194.119.192.3]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IBAQN-00016J-Iz; Wed, 18 Jul 2007 10:22:43 -0400 Original-Received: from conversionlocal.isti.cnr.it by mx.isti.cnr.it (PMDF V6.3 #31251) id <01MJ3S1S2X3KAAV9UD@mx.isti.cnr.it>; Wed, 18 Jul 2007 16:21:48 +0200 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by mx.isti.cnr.it (PMDF V6.3 #31251) with ESMTPSA id <01MJ3S1OREPGAAV5DE@mx.isti.cnr.it>; Wed, 18 Jul 2007 16:21:43 +0200 Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.67) (envelope-from ) id 1IBAPO-00032x-6q; Wed, 18 Jul 2007 16:21:42 +0200 In-reply-to: X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-detected-kernel: OpenVMS 7.2 (Multinet 4.3-4.4 stack) 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:75068 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. 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. > >You can initiate a tags search from any buffer, independent of the list >of files indexed by the tags file, thus you may get different results >depending on where you started it. Yes. Until now we have two different ways to go: 1. Leave everything as it is. This means that invoking tags-search on Latex files will not recover the "\bx\b" pattern even if some of the files contain the "$x = y*z" string, no matter form where you start the search 2. Apply the change I propose. This means that the search will recover the desiderd pattern in the usual case of starting the search from a Latex buffer, but will not recover it if you start the search from a text buffer Does anyone have any opinion on the above alternatives, or any additional alternative to suggest?