unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17641: 24.3.91; (locate-dominating-file "." Makefile) returns nil.
@ 2014-05-30 13:02 Nicolas Richard
  2014-05-30 23:23 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Richard @ 2014-05-30 13:02 UTC (permalink / raw)
  To: 17641

Evalling
(locate-dominating-file "." "Makefile")
I get nil (unless the current directory has the file Makefile in it).

I expected to get some parent directory containing that file.

otoh, evalling:
(locate-dominating-file default-directory "Makefile")
works as expected.

In GNU Emacs 24.3.91.1 (i686-pc-linux-gnu, GTK+ Version 2.24.20)
 of 2014-05-13 on LDLC-portable
Windowing system distributor `The X.Org Foundation', version 11.0.11406000
System Description:	Ubuntu 13.10

-- 
Nico.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17641: 24.3.91; (locate-dominating-file "." Makefile) returns nil.
  2014-05-30 13:02 bug#17641: 24.3.91; (locate-dominating-file "." Makefile) returns nil Nicolas Richard
@ 2014-05-30 23:23 ` Glenn Morris
  2014-05-31  1:39   ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2014-05-30 23:23 UTC (permalink / raw)
  To: Nicolas Richard; +Cc: 17641

Nicolas Richard wrote:

> Evalling
> (locate-dominating-file "." "Makefile")
> I get nil (unless the current directory has the file Makefile in it).

Maybe locate-dominating-file should first call expand-file-name on FILE.
As it stands, it doesn't work with any non-absolute file name.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17641: 24.3.91; (locate-dominating-file "." Makefile) returns nil.
  2014-05-30 23:23 ` Glenn Morris
@ 2014-05-31  1:39   ` Stefan Monnier
  2014-05-31  2:27     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2014-05-31  1:39 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 17641, Nicolas Richard

>> Evalling
>> (locate-dominating-file "." "Makefile")
>> I get nil (unless the current directory has the file Makefile in it).

> Maybe locate-dominating-file should first call expand-file-name on FILE.

Indeed, it probably should.


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17641: 24.3.91; (locate-dominating-file "." Makefile) returns nil.
  2014-05-31  1:39   ` Stefan Monnier
@ 2014-05-31  2:27     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2014-05-31  2:27 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 17641, Nicolas Richard

Stefan Monnier wrote:

>> Maybe locate-dominating-file should first call expand-file-name on FILE.
>
> Indeed, it probably should.

Done in trunk.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-31  2:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-30 13:02 bug#17641: 24.3.91; (locate-dominating-file "." Makefile) returns nil Nicolas Richard
2014-05-30 23:23 ` Glenn Morris
2014-05-31  1:39   ` Stefan Monnier
2014-05-31  2:27     ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).