aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-28 19:27:53 +0000
committerRichard M. Stallman1994-11-28 19:27:53 +0000
commit385b6cc702ce0e1fc88308ceac4cee19dfa20903 (patch)
tree4783905dbdac7360f04a2607454dccf67c4d6633 /src
parent2e3dc201ba90f132a234710b919db91beff4fd1e (diff)
downloademacs-385b6cc702ce0e1fc88308ceac4cee19dfa20903.tar.gz
emacs-385b6cc702ce0e1fc88308ceac4cee19dfa20903.zip
(internal_delete_file, internal_delete_file_1): New functions.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index b89cfe4ed52..a1b202581f1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1925,7 +1925,7 @@ A prefix arg makes KEEP-TIME non-nil.")
1925 UNGCPRO; 1925 UNGCPRO;
1926 return Qnil; 1926 return Qnil;
1927} 1927}
1928 1928
1929DEFUN ("make-directory-internal", Fmake_directory_internal, 1929DEFUN ("make-directory-internal", Fmake_directory_internal,
1930 Smake_directory_internal, 1, 1, 0, 1930 Smake_directory_internal, 1, 1, 0,
1931 "Create a directory. One argument, a file name string.") 1931 "Create a directory. One argument, a file name string.")
@@ -1995,6 +1995,23 @@ If file has multiple names, it continues to exist with the other names.")
1995 return Qnil; 1995 return Qnil;
1996} 1996}
1997 1997
1998static Lisp_Object
1999internal_delete_file_1 (ignore)
2000 Lisp_Object ignore;
2001{
2002 return Qt;
2003}
2004
2005/* Delete file FILENAME, returning 1 if successful and 0 if failed. */
2006
2007int
2008internal_delete_file (filename)
2009 Lisp_Object filename;
2010{
2011 return NILP (internal_condition_case_1 (Fdelete_file, filename,
2012 Qt, internal_delete_file_1));
2013}
2014
1998DEFUN ("rename-file", Frename_file, Srename_file, 2, 3, 2015DEFUN ("rename-file", Frename_file, Srename_file, 2, 3,
1999 "fRename file: \nFRename %s to file: \np", 2016 "fRename file: \nFRename %s to file: \np",
2000 "Rename FILE as NEWNAME. Both args strings.\n\ 2017 "Rename FILE as NEWNAME. Both args strings.\n\