From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: log-edit-strip-single-file-name Date: Sat, 6 Feb 2010 11:18:05 -0800 (PST) Message-ID: <201002061918.o16JI5BL000335@godzilla.ics.uci.edu> References: <3a26oiti.fsf@fencepost.gnu.org> <12bpggw4wg.fsf@fencepost.gnu.org> <201001290820.o0T8KCv1022959@godzilla.ics.uci.edu> <201002040751.o147pVEb025009@godzilla.ics.uci.edu> <201002060426.o164QMaa000423@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 1265483998 24250 80.91.229.12 (6 Feb 2010 19:19:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2010 19:19:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 06 20:19:55 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 1NdqCA-0006s6-Eb for ged-emacs-devel@m.gmane.org; Sat, 06 Feb 2010 20:19:54 +0100 Original-Received: from localhost ([127.0.0.1]:34200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdqC9-0000zi-P3 for ged-emacs-devel@m.gmane.org; Sat, 06 Feb 2010 14:19:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NdqC5-0000zC-8D for emacs-devel@gnu.org; Sat, 06 Feb 2010 14:19:49 -0500 Original-Received: from [199.232.76.173] (port=44119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdqC4-0000z4-Te for emacs-devel@gnu.org; Sat, 06 Feb 2010 14:19:48 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NdqC3-0000xE-Si for emacs-devel@gnu.org; Sat, 06 Feb 2010 14:19:48 -0500 Original-Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]:38499) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NdqC3-0000Rm-DO for emacs-devel@gnu.org; Sat, 06 Feb 2010 14:19:47 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o16JI6Jg014488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 6 Feb 2010 11:18:06 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o16JI5BL000335; Sat, 6 Feb 2010 11:18:05 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sat, 06 Feb 2010 09:28:36 -0500") Original-Lines: 14 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o16JI6Jg014488 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:120990 Archived-At: Stefan Monnier writes: > >> > - (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)? > > It looked clearer to me. > > I think that using something else than default-directory would be > a serious source of surprise for the user. That would not happen, the default-directory is passed to hack-local-directory-variable as an optional argument. But if you prefer to use default-directory instead of passing it as an argument, I'll do that.