emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: log-edit-strip-single-file-name


From: Dan Nicolaescu
Subject: Re: log-edit-strip-single-file-name
Date: Sat, 6 Feb 2010 11:18:05 -0800 (PST)

Stefan Monnier <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]