changeset 3463:aa78c7babb8e

(init_buffer): Init default-directory of minibuffer.
author Richard M. Stallman <rms@gnu.org>
date Thu, 03 Jun 1993 22:07:18 +0000
parents 2624c18df764
children 0d4f6d14bca1
files src/buffer.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Thu Jun 03 21:02:22 1993 +0000
+++ b/src/buffer.c	Thu Jun 03 22:07:18 1993 +0000
@@ -1972,6 +1972,7 @@
   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 @@
     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 */