Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/src/buffer.c Thu Oct 16 18:36:35 1997 +0000 +++ b/src/buffer.c Thu Oct 16 18:37:51 1997 +0000 @@ -3733,7 +3733,12 @@ /* Add /: to the front of the name if it would otherwise be treated as magic. */ temp = Ffind_file_name_handler (current_buffer->directory, Qt); - if (! NILP (temp)) + if (! NILP (temp) + /* If the default dir is just /, TEMP is non-nil + because of the ange-ftp completion handler. + However, it is not necessary to turn / into /:/. + So avoid doing that. */ + && strcmp ("/", XSTRING (current_buffer->directory)->data)) current_buffer->directory = concat2 (build_string ("/:"), current_buffer->directory);
