changeset 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 497b37552adb
children 2b768a1e4f5f
files src/buffer.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Fri Oct 04 04:26:09 1996 +0000
+++ b/src/buffer.c	Fri Oct 04 04:26:23 1996 +0000
@@ -3543,8 +3543,16 @@
       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;
 }