# HG changeset patch # User Karl Heuer # Date 779753860 0 # Node ID e48d66b056fdd1b5ca691eb574c4feb2baf8e090 # Parent e10362de8ebab4b43d4e4dae6b2b8eb049f7ece1 (Fdelete_file): Bind completion-ignored-extensions to nil. diff -r e10362de8eba -r e48d66b056fd src/fileio.c --- a/src/fileio.c Fri Sep 16 22:02:54 1994 +0000 +++ b/src/fileio.c Fri Sep 16 22:17:40 1994 +0000 @@ -150,6 +150,8 @@ static Lisp_Object Vinhibit_file_name_handlers; static Lisp_Object Vinhibit_file_name_operation; +extern Lisp_Object Qcompletion_ignored_extensions; + Lisp_Object Qfile_error, Qfile_already_exists; Lisp_Object Qfile_name_history; @@ -1902,17 +1904,19 @@ (filename) Lisp_Object filename; { + int count = specpdl_ptr - specpdl; Lisp_Object handler; CHECK_STRING (filename, 0); filename = Fexpand_file_name (filename, Qnil); + specbind (Qcompletion_ignored_extensions, Qnil); handler = Ffind_file_name_handler (filename, Qdelete_file); if (!NILP (handler)) - return call2 (handler, Qdelete_file, filename); + return unbind_to (count, call2 (handler, Qdelete_file, filename)); if (0 > unlink (XSTRING (filename)->data)) report_file_error ("Removing old name", Flist (1, &filename)); - return Qnil; + return unbind_to (count, Qnil); } DEFUN ("rename-file", Frename_file, Srename_file, 2, 3,