diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-10-04 04:26:23 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-10-04 04:26:23 +0000 |
commit | 32b83efc23ecaa513e55de5e3bdc6c4f34572f4e (patch) | |
tree | 440696767c960a9088ef89a7dae0204fb30fcc04 /src/buffer.c | |
parent | 0924eeed1a3b1da0fb3ef0526ff44028926ddfdd (diff) | |
download | emacs-32b83efc23ecaa513e55de5e3bdc6c4f34572f4e.tar.gz |
(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 () buf[rc + 1] = '\0'; } #endif /* not VMS */ + current_buffer->directory = build_string (buf); + /* 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)) + current_buffer->directory + = concat2 (build_string ("/:"), current_buffer->directory); + temp = get_minibuffer (0); XBUFFER (temp)->directory = current_buffer->directory; } |