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: Sat, 21 Jul 2007 18:58:00 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1185037159 414 80.91.229.12 (21 Jul 2007 16:59:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2007 16:59:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 21 18:59:17 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 1ICIIV-0005E3-7V for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 18:59:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICIIU-0000Qu-Tt for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 12:59:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ICIIR-0000QS-8H for emacs-devel@gnu.org; Sat, 21 Jul 2007 12:59:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ICIIO-0000Pp-OD for emacs-devel@gnu.org; Sat, 21 Jul 2007 12:59:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICIIO-0000Pi-IK for emacs-devel@gnu.org; Sat, 21 Jul 2007 12:59:08 -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 1ICIIN-0001E8-2X; Sat, 21 Jul 2007 12:59:07 -0400 Original-Received: from conversionlocal.isti.cnr.it by mx.isti.cnr.it (PMDF V6.3 #31408) id <01MJ84DIJAEOAIC44E@mx.isti.cnr.it>; Sat, 21 Jul 2007 18:58:00 +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 <01MJ84DIL78IAFU2UY@mx.isti.cnr.it>; Sat, 21 Jul 2007 18:58:00 +0200 Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.67) (envelope-from ) id 1ICIHI-0005AL-Cp; Sat, 21 Jul 2007 18:58:00 +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:75243 Archived-At: > +The optional argument KEEP-IF-CLASS is a list of symbols. If the > +major mode has any of these symbols in its mode-class property, or if > +one the symbols in the list is t, we do not set the major mode." > >I am not sure what that means. Does it mean that if I pass (t foo) >for KEEP-IF-CLASS, then set-auto-mode will certainly not set the major >mode? Yes. >That is what the words seem to say -- but it doesn't seem useful. >What's the point of calling set-auto-mode and never setting the major mode? Those three lines were meant to present the gist of the change, that is, an abstract of the following patch. But I made another change, that is, the patched set-auto-mode returns the chosen mode. I think this may be useful for programs that want to know which mode a buffer should be in, but do not want to set it. >Also, if you want a way to do that, why make the signal be a list >containing t? Why not just pass t as the argument? Why make it a >list if the rest of the list is irrelevant? Yes, passing just t would certainly be clearer. I thought that having always a list would be simpler to use and possibly more flexible, but I would certainly make that change if you think it is best. >One other question. Since set-auto-mode doesn't look at mode: local >bindings, is it sufficient? Well, no, it is not. I had overlooked that problem, thanks. >Aside from that, it looks good. Next question is how fast it runs. When I manage to find some more time, I'll look into the mode: local bindings and do some speed tests.