Mercurial > emacs
comparison src/buffer.c @ 20080:52fbf5fad62e
(init_buffer): Don't add /: to default dir if it's `/'.
| author | Karl Heuer <kwzh@gnu.org> |
|---|---|
| date | Thu, 16 Oct 1997 18:37:51 +0000 |
| parents | f5ea3a56adb5 |
| children | 6c9879dee580 |
comparison
equal
deleted
inserted
replaced
| 20079:c6c891d8f584 | 20080:52fbf5fad62e |
|---|---|
| 3731 current_buffer->directory = build_string (buf); | 3731 current_buffer->directory = build_string (buf); |
| 3732 | 3732 |
| 3733 /* Add /: to the front of the name | 3733 /* Add /: to the front of the name |
| 3734 if it would otherwise be treated as magic. */ | 3734 if it would otherwise be treated as magic. */ |
| 3735 temp = Ffind_file_name_handler (current_buffer->directory, Qt); | 3735 temp = Ffind_file_name_handler (current_buffer->directory, Qt); |
| 3736 if (! NILP (temp)) | 3736 if (! NILP (temp) |
| 3737 /* If the default dir is just /, TEMP is non-nil | |
| 3738 because of the ange-ftp completion handler. | |
| 3739 However, it is not necessary to turn / into /:/. | |
| 3740 So avoid doing that. */ | |
| 3741 && strcmp ("/", XSTRING (current_buffer->directory)->data)) | |
| 3737 current_buffer->directory | 3742 current_buffer->directory |
| 3738 = concat2 (build_string ("/:"), current_buffer->directory); | 3743 = concat2 (build_string ("/:"), current_buffer->directory); |
| 3739 | 3744 |
| 3740 temp = get_minibuffer (0); | 3745 temp = get_minibuffer (0); |
| 3741 XBUFFER (temp)->directory = current_buffer->directory; | 3746 XBUFFER (temp)->directory = current_buffer->directory; |
