changeset 47851:4c3bd5a753a1

(Fread_file_name): Use empty_string. Use if-expr to simplify.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 12 Oct 2002 22:08:20 +0000
parents 6a654788d913
children d8b6eab7d77a
files src/fileio.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Sat Oct 12 20:58:12 2002 +0000
+++ b/src/fileio.c	Sat Oct 12 22:08:20 2002 +0000
@@ -6023,12 +6023,9 @@
   if (NILP (dir))
     dir = current_buffer->directory;
   if (NILP (default_filename))
-    {
-      if (! NILP (initial))
-	default_filename = Fexpand_file_name (initial, dir);
-      else
-	default_filename = current_buffer->filename;
-    }
+    default_filename = !NILP (initial)
+      ? Fexpand_file_name (initial, dir)
+      : current_buffer->filename;
 
   /* If dir starts with user's homedir, change that to ~. */
   homedir = (char *) egetenv ("HOME");
@@ -6154,7 +6151,7 @@
       if (! replace_in_history)
 	add_to_history = 1;
 
-      val = build_string ("");
+      val = empty_string;
     }
 
   unbind_to (count, Qnil);