Mercurial > emacs
comparison src/buffer.c @ 16384:4ec13b05b0fa
(init_buffer): Add /: to dir names that could be magic.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Fri, 04 Oct 1996 04:26:23 +0000 |
| parents | d45a787999ef |
| children | 195f7cf6a9f3 |
comparison
equal
deleted
inserted
replaced
| 16383:497b37552adb | 16384:4ec13b05b0fa |
|---|---|
| 3541 { | 3541 { |
| 3542 buf[rc] = DIRECTORY_SEP; | 3542 buf[rc] = DIRECTORY_SEP; |
| 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); |
| 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); | |
| 3547 | 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 } |
| 3551 | 3559 |
