From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#19140: dir-locals-collect-variables discrepancy in handling non-file buffers Date: Sat, 14 Feb 2015 21:09:39 +0000 Message-ID: <87lhk09p4c.fsf@violet.siamics.net> References: <87zjbky1kr.fsf@violet.siamics.net> <87egrg9b0q.fsf@violet.siamics.net> <87y4ozrvxs.fsf@violet.siamics.net> <87ppabrt5p.fsf@violet.siamics.net> 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 1423948224 9592 80.91.229.3 (14 Feb 2015 21:10:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2015 21:10:24 +0000 (UTC) To: 19140-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 22:10:13 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 1YMjyf-0005ix-IY for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 22:10:13 +0100 Original-Received: from localhost ([::1]:32893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMjye-0001er-FB for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 16:10:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMjya-0001dc-Ug for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 16:10:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMjyW-0003KU-4U for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 16:10:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMjyV-0003Jj-Cb for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 16:10:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMjyU-0001D3-SR for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 16:10:02 -0500 Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Feb 2015 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19140 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19140-done@debbugs.gnu.org id=D19140.14239481914624 (code D ref 19140); Sat, 14 Feb 2015 21:10:02 +0000 Original-Received: (at 19140-done) by debbugs.gnu.org; 14 Feb 2015 21:09:51 +0000 Original-Received: from localhost ([127.0.0.1]:44206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMjyI-0001CV-K6 for submit@debbugs.gnu.org; Sat, 14 Feb 2015 16:09:50 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:43862) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMjyG-0001CM-Hz for 19140-done@debbugs.gnu.org; Sat, 14 Feb 2015 16:09:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=dAt/ZWu7XTpjitBW0HgmzaN3Sc/kExHlE2H7FUj3RyE=; b=Y+1xoGrRIhBdobr5EsUaU0Tsv20ZrAnn9qxQwNOVSFzDYNCPe3DzWb1OSjzEPQXEfKXenMYP08HFslZlZB+El+i8LX8g5uaNm2GOC+c39FrXZ85SLlN47QYqXI1nZfgY86L9ESlYNTd2Zcm4vwUU/AwLq085pHP0VqcAU+vqDOE=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMjyF-0005xy-V6 for 19140-done@debbugs.gnu.org; Sat, 14 Feb 2015 21:09:48 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMjy8-0003HA-FZ for 19140-done@debbugs.gnu.org; Sun, 15 Feb 2015 04:09:40 +0700 Mail-Followup-To: 19140@debbugs.gnu.org In-Reply-To: <87ppabrt5p.fsf@violet.siamics.net> (Ivan Shmakov's message of "Mon, 19 Jan 2015 09:55:46 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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:99416 Archived-At: Version: 25.1 >>>>> Ivan Shmakov writes: >>>>> Katsumi Yamaoka writes: >>>>> On Mon, 19 Jan 2015 08:55:43 +0000, Ivan Shmakov wrote: >>> Could you please check if both indeed resolve the issue at hand? >> Both work. Thanks. > ACK; I=E2=80=99ve just pushed the change to custom-make-dependencies. > commit 2e8d209f258c9bb6a6626d4a101995965b040024 > Fix the value default-directory gets in custom-make-dependencies. > * lisp/cus-dep.el (custom-make-dependencies): Ensure that > default-directory is interpreted as a directory (see bug#19140.) No further issues reported; closing. commit e000ff30b4354064ca7f9ed07e58903d7c44033f CommitDate: 2015-01-17 19:33:50 +0000 Fix dir-locals handling for non-file buffers. =20=20=20=20 * lisp/files.el (dir-locals-collect-variables): Use default-directory in place of the file name while working on non-file buffers, just like hack-dir-local-variables already does. =20=20=20=20 Fixes: debbugs:19140 --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A