Mercurial > emacs
comparison src/buffer.c @ 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 | c9443f73d329 |
children | 56424e6245c2 |
comparison
equal
deleted
inserted
replaced
3462:2624c18df764 | 3463:aa78c7babb8e |
---|---|
1970 init_buffer () | 1970 init_buffer () |
1971 { | 1971 { |
1972 char buf[MAXPATHLEN+1]; | 1972 char buf[MAXPATHLEN+1]; |
1973 char *pwd; | 1973 char *pwd; |
1974 struct stat dotstat, pwdstat; | 1974 struct stat dotstat, pwdstat; |
1975 Lisp_Object temp; | |
1975 | 1976 |
1976 Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); | 1977 Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); |
1977 | 1978 |
1978 /* If PWD is accurate, use it instead of calling getwd. This is faster | 1979 /* If PWD is accurate, use it instead of calling getwd. This is faster |
1979 when PWD is right, and may avoid a fatal error. */ | 1980 when PWD is right, and may avoid a fatal error. */ |
1992 whose definition is filename syntax dependent. */ | 1993 whose definition is filename syntax dependent. */ |
1993 if (buf[strlen (buf) - 1] != '/') | 1994 if (buf[strlen (buf) - 1] != '/') |
1994 strcat (buf, "/"); | 1995 strcat (buf, "/"); |
1995 #endif /* not VMS */ | 1996 #endif /* not VMS */ |
1996 current_buffer->directory = build_string (buf); | 1997 current_buffer->directory = build_string (buf); |
1998 | |
1999 temp = get_minibuffer (0); | |
2000 XBUFFER (temp)->directory = current_buffer->directory; | |
1997 } | 2001 } |
1998 | 2002 |
1999 /* initialize the buffer routines */ | 2003 /* initialize the buffer routines */ |
2000 syms_of_buffer () | 2004 syms_of_buffer () |
2001 { | 2005 { |