From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#21436: 25.0.50; dir local variables are ignored Date: Tue, 08 Sep 2015 13:15:20 -0400 Message-ID: Reply-To: sds@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1441733622 22755 80.91.229.3 (8 Sep 2015 17:33:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 17:33:42 +0000 (UTC) To: 21436@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 08 19:33:20 2015 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 1ZZMlj-0004R4-AZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 19:33:19 +0200 Original-Received: from localhost ([::1]:36104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMlj-0004nZ-31 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 13:33:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMlX-0004j0-Ou for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 13:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZMlT-00033C-6s for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 13:33:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMlS-00032N-TN for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 13:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZZMZq-00053F-4g for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 13:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Sep 2015 17:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21436 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144173283019369 (code B ref -1); Tue, 08 Sep 2015 17:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Sep 2015 17:20:30 +0000 Original-Received: from localhost ([127.0.0.1]:52869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZMZI-00052J-9Z for submit@debbugs.gnu.org; Tue, 08 Sep 2015 13:20:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49583) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZMZG-00052B-B9 for submit@debbugs.gnu.org; Tue, 08 Sep 2015 13:20:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZMZ4-0005Fe-Nd for submit@debbugs.gnu.org; Tue, 08 Sep 2015 13:20:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMZ4-00054N-Gs for submit@debbugs.gnu.org; Tue, 08 Sep 2015 13:20:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMUg-0000jq-Lc for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 13:15:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZMUe-00039Q-TO for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 13:15:42 -0400 Original-Received: from mail-io0-x22f.google.com ([2607:f8b0:4001:c06::22f]:33446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMUY-00035v-K2; Tue, 08 Sep 2015 13:15:35 -0400 Original-Received: by iofh134 with SMTP id h134so126334095iof.0; Tue, 08 Sep 2015 10:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:return-receipt-to:reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; bh=1ci0ng59z/BozgVR08N9ydrajWERMVI1rndhp427Zcw=; b=KCURulUA3vC+X6GyQkUAP+CTEslYv9hQr/R7tKGGo01a0FUO9fVL6JxGQS+k6l1ubY Fj9L6CjkbqhA24WD93+J76G+Quvnj/ZhP24PXpyoZ7K8Op3d9dhGGeT+jZbHGa7WF+zj ZpkRpl1SU2Jpr5Fm4q+680JSfzW+CZmetseaINfnWqimXPuxcdseXDqlZor8SLsB/0SL d59TND6fAQMLZtSIalEBudx8mVnso7k0c3HGuHmmZhwtcT/FOvSZXyghAPg4YMyiQ5kH 39gKCTC6TZ9idM85QBkrxx21D6KdjopPgKGuSouqwn4k/SgBK8IXQjboTOJN7QFMHQMb pAwA== X-Received: by 10.107.138.231 with SMTP id c100mr12568879ioj.87.1441732533144; Tue, 08 Sep 2015 10:15:33 -0700 (PDT) Original-Received: from sds-MacBook-Pro.local ([69.74.59.115]) by smtp.gmail.com with ESMTPSA id n8sm2588030igv.22.2015.09.08.10.15.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2015 10:15:32 -0700 (PDT) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 208.118.235.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:106258 Archived-At: My .dir-locals.el is --8<---------------cut here---------------start------------->8--- ((python-mode . ((python-shell-extra-pythonpaths . ("../utils" ""))))) --8<---------------cut here---------------end--------------->8--- nevertheless the value of `python-shell-extra-pythonpaths' in the python buffer is `nil' even after an explicit M-: (hack-dir-local-variables) RET or killing the buffer and re-visiting the file. enable-local-variables =3D=3D> :safe enable-dir-local-variables =3D=3D> t dir-local-variables-alist =3D=3D> ((python-shell-extra-pythonpaths "../util= s" "")) The doc seems to support this behavior: --8<---------------cut here---------------start------------->8--- hack-dir-local-variables is a compiled Lisp function in =E2=80=98files.el= =E2=80=99. Read per-directory local variables for the current buffer. Store the directory-local variables in =E2=80=98dir-local-variables-alist= =E2=80=99 and =E2=80=98file-local-variables-alist=E2=80=99, without applying them. --8<---------------cut here---------------end--------------->8--- however, ISTR that `hack-dir-local-variables' did install the local vars. so, what do I need to do to get the dir-local vars to take effect? In GNU Emacs 25.0.50.3 (x86_64-apple-darwin14.5.0, NS appkit-1348.17 Versio= n 10.10.5 (Build 14F27)) of 2015-09-08 Repository revision: 48857075c96c00bdbf8536e25234d33ed1b6e3b9 Windowing system distributor 'Apple', version 10.3.1348 Configured using: 'configure --with-ns' Configured features: JPEG IMAGEMAGICK ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: C locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: diff-auto-refine-mode: t anaconda-mode: t rcirc-track-minor-mode: t which-function-mode: t url-handler-mode: t show-paren-mode: t desktop-save-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t abbrev-mode: t Recent messages: Load-path shadows: None found. Features: (shadow sort bbdb-message mailalias cookie1 flyspell ispell mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums time-stamp apropos dabbrev tramp-cache debug skeleton misearch multi-isearch vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc vc remember vc-dispatcher image-mode dired-aux dired vc-hg vc-git diff-mode easy-mmode anaconda-mode f s ucs-normalize dash json-rpc python-x folding-isearch folding python tramp-sh tramp tramp-compat tramp-loaddefs trampver json finder-inf package epg-config warnings midnight gnus gnus-ems nnheader mail-utils wid-edit bbdb-mua bbdb-com crm mailabbrev bbdb-loaddefs bbdb bbdb-site timezone rcirc server which-func imenu url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache url-vars paren help-at-pt desktop frameset cus-start cus-load ido seq byte-opt bytecomp byte-compile cconv cl-extra help-mode ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a shell pcomplete ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp3-d ess-julia ess-r-d ess-r-completion compile ess-tracebug format-spec ess-roxy advice hideshow ess-help ess-developer ess-s-l ess ess-inf comint ansi-color ring ess-mode ess-noweb-mode ess-utils ess-custom executable easymenu ess-compat ess-site cl gv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 523930 33265) (symbols 48 66127 0) (miscs 40 6106 69) (strings 32 183271 16989) (string-bytes 1 4406061) (vectors 16 71432) (vector-slots 8 1033994 2707) (floats 8 486 794) (intervals 56 3014 0) (buffers 976 32)) --=20 Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1348 http://www.childpsy.net/ http://think-israel.org http://camera.org http://mideasttruth.com http://ffii.org http://memri.org http://truepeace.o= rg Never argue with an idiot: he has more experience with idiotic arguments.