]> code.delx.au - gnu-emacs/commitdiff
(init_buffer): Init default-directory of minibuffer.
authorRichard M. Stallman <rms@gnu.org>
Thu, 3 Jun 1993 22:07:18 +0000 (22:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 3 Jun 1993 22:07:18 +0000 (22:07 +0000)
src/buffer.c

index c6212beda77e0559dc8ef32455b8c9e2e58d7fca..be94972ee87dce2990f613e557a18cfe84b04d84 100644 (file)
@@ -1972,6 +1972,7 @@ init_buffer ()
   char buf[MAXPATHLEN+1];
   char *pwd;
   struct stat dotstat, pwdstat;
+  Lisp_Object temp;
 
   Fset_buffer (Fget_buffer_create (build_string ("*scratch*")));
 
@@ -1994,6 +1995,9 @@ init_buffer ()
     strcat (buf, "/");
 #endif /* not VMS */
   current_buffer->directory = build_string (buf);
+
+  temp = get_minibuffer (0);
+  XBUFFER (temp)->directory = current_buffer->directory;
 }
 
 /* initialize the buffer routines */