GNU bug report logs - #767
23.0.60; compilation-start gives bad default-directory

Previous Next

Package: emacs;

Reported by: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>

Date: Sat, 23 Aug 2008 13:15:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 767 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Lennart Borgman \(gmail\)" <lennart.borgman <at> gmail.com>
Cc: 767 <at> debbugs.gnu.org
Subject: Re: 23.0.60; compilation-start gives bad default-directory
Date: Tue, 26 Aug 2008 18:18:14 -0400
> If on w32 default-directory is something like c:\top\sub then the
> subprocess started by compilation-start will get pwd=c:\top.

Does the following patch fix this?

*** trunk/src/callproc.c.~1.240.~	2008-07-31 12:19:14.000000000 -0400
--- trunk/src/callproc.c	2008-08-26 18:15:59.000000000 -0400
***************
*** 374,379 ****
--- 374,381 ----
  	 a sensible default. */
        current_dir = build_string ("~/");
      current_dir = expand_and_dir_to_file (current_dir, Qnil);
+     current_dir = Ffile_name_as_directory (current_dir);
+ 
      if (NILP (Ffile_accessible_directory_p (current_dir)))
        report_file_error ("Setting current directory",
  			 Fcons (current_buffer->directory, Qnil));




This bug report was last modified 16 years and 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.