From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: log-edit-strip-single-file-name Date: Thu, 04 Feb 2010 10:40:31 -0500 Message-ID: References: <3a26oiti.fsf@fencepost.gnu.org> <12bpggw4wg.fsf@fencepost.gnu.org> <201001290820.o0T8KCv1022959@godzilla.ics.uci.edu> <201002040751.o147pVEb025009@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265298068 12757 80.91.229.12 (4 Feb 2010 15:41:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2010 15:41:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 04 16:41:05 2010 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.69) (envelope-from ) id 1Nd3pJ-0001Hv-4R for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 16:41:05 +0100 Original-Received: from localhost ([127.0.0.1]:54470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd3pI-0006EU-BL for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 10:41:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd3oo-000634-0C for emacs-devel@gnu.org; Thu, 04 Feb 2010 10:40:34 -0500 Original-Received: from [199.232.76.173] (port=50957 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd3on-00062i-8U for emacs-devel@gnu.org; Thu, 04 Feb 2010 10:40:33 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd3om-0003iF-He for emacs-devel@gnu.org; Thu, 04 Feb 2010 10:40:33 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:14526 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nd3om-0003iB-A9 for emacs-devel@gnu.org; Thu, 04 Feb 2010 10:40:32 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsEAB95aktFpaN9/2dsb2JhbACBM9YfhEwEimaDIg X-IronPort-AV: E=Sophos;i="4.49,405,1262581200"; d="scan'208";a="55315128" Original-Received: from 69-165-163-125.dsl.teksavvy.com (HELO ceviche.home) ([69.165.163.125]) by ironport2-out.pppoe.ca with ESMTP; 04 Feb 2010 10:40:31 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 73E44B4270; Thu, 4 Feb 2010 10:40:31 -0500 (EST) In-Reply-To: <201002040751.o147pVEb025009@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 3 Feb 2010 23:51:31 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:120905 Archived-At: > (the code that sets the local variables in > hack-dir-local-variables-non-file-buffer should be put in a function > that is also called from hack-local-variables). Yes, that would make sense. > - (let ((variables-file (dir-locals-find-file (buffer-file-name))) > + (let ((variables-file (dir-locals-find-file (or dname (buffer-file-name)))) Why (or dname (buffer-file-name)) rather than (or buffer-file-name default-directory)? Stefan