Mercurial > emacs
comparison src/buffer.c @ 65422:c832bf03b2b2
(init_buffer): Fix error message for failed call to get_current_dir_name.
(get_current_dir_name): Remove prototype.
| author | Eli Zaretskii <eliz@gnu.org> |
|---|---|
| date | Sat, 10 Sep 2005 14:04:18 +0000 |
| parents | 29cca0143d6f |
| children | 170f43effa81 |
comparison
equal
deleted
inserted
replaced
| 65421:8763a59d5982 | 65422:c832bf03b2b2 |
|---|---|
| 47 #include "indent.h" | 47 #include "indent.h" |
| 48 #include "blockinput.h" | 48 #include "blockinput.h" |
| 49 #include "keyboard.h" | 49 #include "keyboard.h" |
| 50 #include "keymap.h" | 50 #include "keymap.h" |
| 51 #include "frame.h" | 51 #include "frame.h" |
| 52 | |
| 53 extern char * get_current_dir_name (); | |
| 54 | 52 |
| 55 struct buffer *current_buffer; /* the current buffer */ | 53 struct buffer *current_buffer; /* the current buffer */ |
| 56 | 54 |
| 57 /* First buffer in chain of all buffers (in reverse order of creation). | 55 /* First buffer in chain of all buffers (in reverse order of creation). |
| 58 Threaded through ->next. */ | 56 Threaded through ->next. */ |
| 5134 Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); | 5132 Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); |
| 5135 if (NILP (buffer_defaults.enable_multibyte_characters)) | 5133 if (NILP (buffer_defaults.enable_multibyte_characters)) |
| 5136 Fset_buffer_multibyte (Qnil); | 5134 Fset_buffer_multibyte (Qnil); |
| 5137 | 5135 |
| 5138 pwd = get_current_dir_name (); | 5136 pwd = get_current_dir_name (); |
| 5139 | 5137 |
| 5140 if(!pwd) | 5138 if(!pwd) |
| 5141 fatal ("`get_cwd' failed: %s\n", strerror (errno)); | 5139 fatal ("`get_current_dir_name' failed: %s\n", strerror (errno)); |
| 5142 | 5140 |
| 5143 #ifndef VMS | 5141 #ifndef VMS |
| 5144 /* Maybe this should really use some standard subroutine | 5142 /* Maybe this should really use some standard subroutine |
| 5145 whose definition is filename syntax dependent. */ | 5143 whose definition is filename syntax dependent. */ |
| 5146 rc = strlen (pwd); | 5144 rc = strlen (pwd); |
