]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_buffer): Don't add /: to default dir if it's `/'.
authorKarl Heuer <kwzh@gnu.org>
Thu, 16 Oct 1997 18:37:51 +0000 (18:37 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 16 Oct 1997 18:37:51 +0000 (18:37 +0000)
src/buffer.c

index 566757e99878deaaab6f66041284bc08c63b82be..5bb80523c102d0772cacfcdb13a388642584c851 100644 (file)
@@ -3733,7 +3733,12 @@ init_buffer ()
   /* 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);