From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: status of dir-vars or dir-locals inclusion in emacs? Date: Tue, 31 Jul 2007 14:45:04 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185907535 13982 80.91.229.12 (31 Jul 2007 18:45:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2007 18:45:35 +0000 (UTC) Cc: tromey@redhat.com, joakim@verona.se, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 31 20:45:27 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 1IFwid-0004PT-FB for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2007 20:45:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFwic-0001co-SL for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2007 14:45:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFwiZ-0001c3-QD for emacs-devel@gnu.org; Tue, 31 Jul 2007 14:45:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFwiY-0001b6-46 for emacs-devel@gnu.org; Tue, 31 Jul 2007 14:45:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFwiX-0001b3-T5 for emacs-devel@gnu.org; Tue, 31 Jul 2007 14:45:13 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IFwiT-0007Go-Ty; Tue, 31 Jul 2007 14:45:10 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 419D12CF4ED; Tue, 31 Jul 2007 14:45:09 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 52F8B3FE1; Tue, 31 Jul 2007 14:45:04 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 3F03B6C18F; Tue, 31 Jul 2007 14:45:04 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Tue\, 31 Jul 2007 13\:05\:46 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) 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:75864 Archived-At: > ;; - need a way to add to auto-mode-alist per-project > ;; e.g., semantic wants GCC's .def files to be c-mode > ;; (RMS points out that this is also easily done by adding comments > ;; to the particular files.) > The point is, we don't need another way to do it, > so that item should be deleted. BTW, another way to implement it is to match the directory portion in auto-mode-alist. E.g. you can have an entry such as ("/emacs/.*\\.[ch]\\'" . gnu-style-c-mode). > ;; When a file is loaded, project.el will search up the directory > ;; hierarchy. Maybe you can try to use the new `locate-dominating-file' function. Stefan