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: status of dir-vars or dir-locals inclusion in emacs? Date: Tue, 10 Jul 2007 18:01:34 -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 1184104914 19051 80.91.229.12 (10 Jul 2007 22:01:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2007 22:01:54 +0000 (UTC) Cc: joakim@verona.se, emacs-devel@gnu.org To: tromey@redhat.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 11 00:01: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 1I8NmK-0000n3-18 for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2007 00:01:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8NmJ-0005vq-Mk for ged-emacs-devel@m.gmane.org; Tue, 10 Jul 2007 18:01:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8Nlh-0005cK-0e for emacs-devel@gnu.org; Tue, 10 Jul 2007 18:01:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8Nlg-0005c2-K4 for emacs-devel@gnu.org; Tue, 10 Jul 2007 18:01:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8Nlg-0005bz-AE for emacs-devel@gnu.org; Tue, 10 Jul 2007 18:01:12 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8Nlf-0005eF-St for emacs-devel@gnu.org; Tue, 10 Jul 2007 18:01:12 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I8Nm2-0000qV-K3; Tue, 10 Jul 2007 18:01:34 -0400 In-reply-to: (message from Tom Tromey on Tue, 03 Jul 2007 18:25:11 -0600) 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:74588 Archived-At: project.el looks like just the right thing. Could you write changes to etc/NEWS and the Emacs Manual to describe it? I think a few small changes should be made. * Rename `project-define-class' to `define-project-bindings'. * Rename `project-define-instance' to `set-directory-project'. * Rename `project-set-variables' to `project-install-bindings'. Likewise other names derived from that one. ;; - need a way to add to auto-mode-alist per-project ;; e.g., semantic wants GCC's .def files to be c-mode That seems secondary -- it is not hard to make files specify their major modes. ;; - should cache the mod time of settings file and then reload it ;; or at least offer user a way to invalidate cache Does that mean, in case the project settings change, it should update the bindings in the relevant buffers? It should be easy to store in the alist a cons cell that was made by `define-project-bindings', and copy that into a buffer-local variable. Then by comparison you can tell whether the project's settings have changed since they were installed into the current buffer. ;; - should let the user augment the project settings with personal ones Isn't this what `project-define-class' does? How would this be different from that?