diff options
| author | Karl Heuer | 1997-10-16 18:37:51 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-16 18:37:51 +0000 |
| commit | 81ab2e072715623f993650ac73490c615bd761ba (patch) | |
| tree | 348914b88080af682b9f040e42ebe530c849fbc9 /src/buffer.c | |
| parent | 85eb827a5c76a9eb464d1d89111002dfe4094b03 (diff) | |
| download | emacs-81ab2e072715623f993650ac73490c615bd761ba.tar.gz emacs-81ab2e072715623f993650ac73490c615bd761ba.zip | |
(init_buffer): Don't add /: to default dir if it's `/'.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 566757e9987..5bb80523c10 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -3733,7 +3733,12 @@ init_buffer () | |||
| 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 | ||