From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Behaviour of add-file-local-variable? Date: Wed, 19 Oct 2011 12:39:34 +0300 Organization: JURTA Message-ID: <871uu9e2w9.fsf@mail.jurta.org> References: <81ipnltl3x.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319017269 24668 80.91.229.12 (19 Oct 2011 09:41:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2011 09:41:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 19 11:41:05 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGSe1-0007fW-An for ged-emacs-devel@m.gmane.org; Wed, 19 Oct 2011 11:41:05 +0200 Original-Received: from localhost ([::1]:55698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGSe0-0003YH-Pn for ged-emacs-devel@m.gmane.org; Wed, 19 Oct 2011 05:41:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGSdx-0003Y1-Ch for emacs-devel@gnu.org; Wed, 19 Oct 2011 05:41:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGSdv-0003tI-QX for emacs-devel@gnu.org; Wed, 19 Oct 2011 05:41:01 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:34742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGSdv-0003t9-Jc for emacs-devel@gnu.org; Wed, 19 Oct 2011 05:40:59 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 4997E6E805D for ; Wed, 19 Oct 2011 02:40:58 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 8C11F451C563 for ; Wed, 19 Oct 2011 02:40:57 -0700 (PDT) In-Reply-To: <81ipnltl3x.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 19 Oct 2011 14:27:06 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.113.175.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145321 Archived-At: > Should add-file-local-variable also set the variable immediately rather > than merely updating the file footer? While keeping text in the Local Variables section in sync with actual values looks like the right thing to do, it raises related questions that are more difficult to decide: Should `M-x add-file-local-variable RET mode RET' also change current mode? Should `M-x add-file-local-variable RET coding RET' also change the current buffer coding? Should `M-x add-file-local-variable RET eval RET' evaluate the added expression? Should `delete-file-local-variable' return the previous buffer-local value or revert to the global value? Should `add-dir-local-variable' after modifying .dir-locals.el also update values in all visited file buffers in all subdirectories?