diff options
| author | Richard M. Stallman | 1996-10-04 04:26:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-10-04 04:26:23 +0000 |
| commit | 0995fa350a861885b709fc2bfc210d65a5597385 (patch) | |
| tree | 426a60f82b87b5862a587ee880bbce72024a9cd2 /src/buffer.c | |
| parent | c49afcd7007b6361da51c3b4d952e44ec43bd83f (diff) | |
| download | emacs-0995fa350a861885b709fc2bfc210d65a5597385.tar.gz emacs-0995fa350a861885b709fc2bfc210d65a5597385.zip | |
(init_buffer): Add /: to dir names that could be magic.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 51a34550476..b02bf784e17 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -3543,8 +3543,16 @@ init_buffer () | |||
| 3543 | buf[rc + 1] = '\0'; | 3543 | buf[rc + 1] = '\0'; |
| 3544 | } | 3544 | } |
| 3545 | #endif /* not VMS */ | 3545 | #endif /* not VMS */ |
| 3546 | |||
| 3546 | current_buffer->directory = build_string (buf); | 3547 | current_buffer->directory = build_string (buf); |
| 3547 | 3548 | ||
| 3549 | /* Add /: to the front of the name | ||
| 3550 | if it would otherwise be treated as magic. */ | ||
| 3551 | temp = Ffind_file_name_handler (current_buffer->directory, Qt); | ||
| 3552 | if (! NILP (temp)) | ||
| 3553 | current_buffer->directory | ||
| 3554 | = concat2 (build_string ("/:"), current_buffer->directory); | ||
| 3555 | |||
| 3548 | temp = get_minibuffer (0); | 3556 | temp = get_minibuffer (0); |
| 3549 | XBUFFER (temp)->directory = current_buffer->directory; | 3557 | XBUFFER (temp)->directory = current_buffer->directory; |
| 3550 | } | 3558 | } |