From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Add file-locals and dir-locals Date: Fri, 17 Jul 2009 09:57:45 +0200 Message-ID: <4A602EF9.9070306@gmx.at> References: <20090712144137.GB2524@muc.de> <87hbxhony6.fsf@stupidchicken.com> <20090712180623.GA1009@muc.de> <4A5A2BE1.3050206@harpegolden.net> <87ab34p0o4.fsf_-_@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247819095 13759 80.91.229.12 (17 Jul 2009 08:24:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2009 08:24:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 17 10:24:48 2009 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 1MRikH-0000z0-Rm for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2009 10:24:46 +0200 Original-Received: from localhost ([127.0.0.1]:60364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRikH-0003Qv-2m for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2009 04:24:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRikB-0003QD-PM for emacs-devel@gnu.org; Fri, 17 Jul 2009 04:24:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRik6-0003K1-0V for emacs-devel@gnu.org; Fri, 17 Jul 2009 04:24:38 -0400 Original-Received: from [199.232.76.173] (port=36814 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRik5-0003Jl-SD for emacs-devel@gnu.org; Fri, 17 Jul 2009 04:24:33 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:33227) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MRik4-0000RD-Ef for emacs-devel@gnu.org; Fri, 17 Jul 2009 04:24:33 -0400 Original-Received: (qmail invoked by alias); 17 Jul 2009 07:57:48 -0000 Original-Received: from 62-47-36-157.adsl.highway.telekom.at (EHLO [62.47.36.157]) [62.47.36.157] by mail.gmx.net (mp003) with SMTP; 17 Jul 2009 09:57:48 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+SKMRCC3CS0DKSxCsR+RSCrUYPsGqN7OwQu2gKeG h+V38VXh8ux/Bq User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87ab34p0o4.fsf_-_@mail.jurta.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.82 X-detected-operating-system: by monty-python.gnu.org: GNU/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:112608 Archived-At: > `add-file-local-variable' adds file-local variable with its value to the > Local Variables list. `add-dir-local-variable' adds directory-local > variable with its value and mode to the .dir-locals.el file. Based on > this implementation another commands could be added later that will > move file-local variables to .dir-locals.el and vice versa. Sometimes we also want to replace the old value of a local variable with a new one here. So maybe functions like `set-file-local-variable' and `set-dir-local-variable' seem more appropriate. martin