changeset 20080:52fbf5fad62e

(init_buffer): Don't add /: to default dir if it's `/'.
author Karl Heuer <kwzh@gnu.org>
date Thu, 16 Oct 1997 18:37:51 +0000
parents c6c891d8f584
children cf2733572fa7
files src/buffer.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Thu Oct 16 18:36:35 1997 +0000
+++ b/src/buffer.c	Thu Oct 16 18:37:51 1997 +0000
@@ -3733,7 +3733,12 @@
   /* 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))
+  if (! NILP (temp)
+      /* If the default dir is just /, TEMP is non-nil
+	 because of the ange-ftp completion handler.
+	 However, it is not necessary to turn / into /:/.
+	 So avoid doing that.  */
+      && strcmp ("/", XSTRING (current_buffer->directory)->data))
     current_buffer->directory
       = concat2 (build_string ("/:"), current_buffer->directory);