unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#767: 23.0.60; compilation-start gives bad default-directory
@ 2008-08-26 22:18 Chong Yidong
  0 siblings, 0 replies; 11+ messages in thread
From: Chong Yidong @ 2008-08-26 22:18 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: 767

> 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));






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

end of thread, other threads:[~2008-09-07 23:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87prnfu5sl.fsf@cyd.mit.edu>
2008-08-23 13:05 ` bug#767: 23.0.60; compilation-start gives bad default-directory Lennart Borgman (gmail)
2008-09-07 19:20   ` bug#767: marked as done (23.0.60; compilation-start gives bad default-directory) Emacs bug Tracking System
2008-09-07 19:34   ` bug#767: 23.0.60; compilation-start gives bad default-directory Stefan Monnier
2008-09-07 19:40     ` Lennart Borgman (gmail)
2008-09-07 19:59       ` Stefan Monnier
2008-09-07 20:04         ` Lennart Borgman (gmail)
2008-09-07 20:38           ` Stefan Monnier
2008-09-07 20:59             ` Lennart Borgman (gmail)
2008-09-07 21:19     ` Eli Zaretskii
2008-09-07 23:48       ` Lennart Borgman (gmail)
2008-08-26 22:18 Chong Yidong

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).