From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: yary Newsgroups: gmane.emacs.bugs Subject: bug#15577: 24.3; dir-local variables not applied when switching major-mode Date: Thu, 10 Oct 2013 14:34:20 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1381430919 14222 80.91.229.3 (10 Oct 2013 18:48:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2013 18:48:39 +0000 (UTC) Cc: 15577@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 10 20:48:41 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VULHs-0003Qt-Kd for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2013 20:48:40 +0200 Original-Received: from localhost ([::1]:50165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VULHs-0003ZL-B6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2013 14:48:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUL4n-0001nA-5k for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 14:35:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUL4i-0003jW-4O for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 14:35:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUL4h-0003j1-Bj for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 14:35:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VUL4g-0005y4-R1 for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 14:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: yary Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2013 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15577-submit@debbugs.gnu.org id=B15577.138143008622910 (code B ref 15577); Thu, 10 Oct 2013 18:35:02 +0000 Original-Received: (at 15577) by debbugs.gnu.org; 10 Oct 2013 18:34:46 +0000 Original-Received: from localhost ([127.0.0.1]:41329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VUL4P-0005xQ-SO for submit@debbugs.gnu.org; Thu, 10 Oct 2013 14:34:46 -0400 Original-Received: from mail-wg0-f44.google.com ([74.125.82.44]:53809) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VUL4M-0005xA-7h for 15577@debbugs.gnu.org; Thu, 10 Oct 2013 14:34:43 -0400 Original-Received: by mail-wg0-f44.google.com with SMTP id n12so2442138wgh.11 for <15577@debbugs.gnu.org>; Thu, 10 Oct 2013 11:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Gydg2cx7ImKCC0qpePxKTc0uAv7+y2y66b6XyWtxX00=; b=C59AyhVfgKak1CothQHFKo/b547ar0a1JlH1C+Dcg2t0dThAQ9NQC+RgaiPeMJDWd3 0UpGiHtLDKWh+rRtOZh7PsGZ3jQoNreeKYz8/knxQRseLRhZUy7X0ZW6TjASl2yaXbHA wb3XgSSTNzdqe1HSGYzwjjguE7HnMmHheIRYOPtVsimmpwffDol1lfNsUjIEkurm0UoD 2gR/Ja9Lrsg2F0/Z18PP0A8n1R5V5VsK56HQqwBDsDQPQOaQDyYGhRKMiyj8FPQEe/A6 znK4njT7lYL5DF6HPeVoW366A0EI/T8lJ2DvpENVAL/1DrU7g9m6WixyA2kdt9fBMGQm 49DQ== X-Received: by 10.180.13.113 with SMTP id g17mr9069538wic.19.1381430081110; Thu, 10 Oct 2013 11:34:41 -0700 (PDT) Original-Received: by 10.194.83.72 with HTTP; Thu, 10 Oct 2013 11:34:20 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79156 Archived-At: Before posting the mode-change-clobbering-locals behavior as a bug, I asked about it on stackoverflow, which generated a thorough explanation : http://stackoverflow.com/questions/19280851/how-to-keep-dir-local-variables-when-switching-major-modes -y On Wed, Oct 9, 2013 at 5:42 PM, Glenn Morris wrote: > yary wrote: > >> If I create a ".dir-locals.el" that applies to all major modes, such as: >> ((nil . ((tab-width . 3)))) >> It works when first opening any file under that directory- good. But, if >> I switch the buffer's major-mode, it loses the directory-local >> tab-width - > > File-local variables behave in the same way.