aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (barf_or_query_if_file_exists): New arg STATPTR. Callers changed.Richard M. Stallman1995-10-011-9/+37
| | | | (Fcopy_file): Error if input and output are the same file.
* (Fmake_symbolic_link, Fadd_name_to_file):Richard M. Stallman1995-09-021-0/+14
| | | | Look for handler for the new name as well as for the target.
* (Fwrite_region): New arg lockname.Richard M. Stallman1995-08-141-11/+16
| | | | (auto_save_1): Pass new arg.
* (do_auto_save_unwind): Set auto_saving to 0.Richard M. Stallman1995-07-221-28/+53
| | | | | | | | | | | (Fdo_auto_save): Don't clear auto_saving here. Set it to 1 only when we make the unwind-protect. (Ffile_modes) [DOS_NT]: Use check_executable. (check_executable): DOS_NT code moved here from Ffile_modes. (check_writable): New code for MSDOS. (Fexpand_file_name): Initial ~ means name is absolute.
* (Fwrite_region): If fsync fails with EINTR, don'tKarl Heuer1995-07-171-1/+5
| | | | report a Lisp error.
* (directory_file_name): Don't get confused by // at end on Unix-like systems.Richard M. Stallman1995-06-241-1/+4
|
* (Fvisited_file_modtime): Cast arg to long_to_cons.Karl Heuer1995-05-231-1/+1
|
* (directory_file_name): Add APOLLO conditional.Richard M. Stallman1995-05-031-31/+7
| | | | (Fcopy_file, Fset_file_modes): Delete APOLLO conditionals.
* (Finsert_file_contents): Use file_truename for unlocking.Richard M. Stallman1995-05-021-2/+2
|
* (Fdo_auto_save): Record visited file nameRichard M. Stallman1995-04-301-3/+12
| | | | | as well as auto-save file name in the auto-save-list-file-name file. Call Fexpand_file_name for auto-save-list-file-name.
* (Ffile_regular_p): Use Qfile_regular_p.Richard M. Stallman1995-04-261-2/+5
| | | | (syms_of_fileio): Set up Qfile_regular_p.
* (Fexpand_file_name): Use IS_DIRECTORY_SEP instead ofKarl Heuer1995-04-131-34/+13
| | | | special code for WINDOWSNT.
* Fix typo in previous change.Karl Heuer1995-04-121-1/+1
|
* (directory_file_name) [WINDOWSNT]: Handle UNC format.Karl Heuer1995-04-121-9/+15
| | | | | | | (Fexpand_file_name) [DOS_NT]: Don't strip slash from default dirs like "C:\\" Preserve drive letter case. Fix syntax errors. Check drive letter when expanding ~\.
* Update copyright.Karl Heuer1995-04-071-1/+1
|
* (syms_of_fileio): Fix missing \n\.Karl Heuer1995-03-221-1/+1
|
* (Finsert_file_contents): Call format-decode.Boris Goldowsky1995-03-171-0/+48
| | | | | (build_annotations): Call format-annotate-function for each element of buffer_file_format.
* (Fexpand_file_name): Copy default-directoryRichard M. Stallman1995-02-141-5/+6
| | | | before looking for a handler on the directory arg.
* (Fexpand_file_name): Look for a handler for defalt.Richard M. Stallman1995-02-121-3/+9
| | | | (syms_of_fileio): Minor rearrangement.
* (file_name_as_directory, Ffile_name_directory)Richard M. Stallman1995-01-201-10/+0
| | | | (Ffile_name_nondirectory): Delete special MSDOG code now covered by macros.
* Use SAVE_MODIFF and BUF_SAVE_MODIFFRichard M. Stallman1995-01-021-7/+19
| | | | | | | instead of direct access to the save_modiff field. (Finsert_file_contents, Fwrite_region): Error if buffer is indirect. (Fdo_auto_save): Do nothing for an indirect buffer.
* (internal_delete_file, internal_delete_file_1): New functions.Richard M. Stallman1994-11-281-1/+18
|
* (Fdo_auto_save): Use the new type-test macros.Karl Heuer1994-11-161-2/+1
|
* (Fread_file_name_internal): Protect orig_string.Richard M. Stallman1994-11-161-2/+12
| | | | | | (Fsubstitute_in_file_name): Run a handler. (Qsubstitute_in_file_name): New variable. (syms_of_fileio): Set it up.
* (Finsert_file_contents): Init not_regular at the beginning.Richard M. Stallman1994-11-151-2/+1
|
* (Finsert_file_contents): If VISIT, set the buffer componentsRichard M. Stallman1994-11-141-3/+16
| | | | such as the filename even before signaling error for non-regular file.
* (Fsubstitute_in_file_name): Add missing #endif.Richard M. Stallman1994-11-091-0/+1
|
* Change explicit uses of the Unix directory separatorRichard M. Stallman1994-11-011-137/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /' to uses of the macros IS_ANY_SEP, IS_DIRECTORY_SEP, S_DEVICE_SEP, DIRECTORY_SEP, and DEVICE_SEP. [WINDOWSNT]: Don't define HAVE_FSYNC; add includes for NT. (Ffile_name_absolute_p): Test DOS_NT instead of MSDOS. (Fwrite_region, Fdo_auto_save, Ffile_modes): Likewise. (Qfind_buffer_file_type): Test DOS_NT instead of MSDOS. (syms_of_files): Likewise. (Finsert_file_types): Test DOS_NT instead of MSDOS. Rename local var try to trytry. (Fadd_name_to_file): Wlways fail. (Frename_file) [WINDOWSNT]: Use MoveFile, not link and unlink, and check for both ERROR_FILE_EXISTS and ERROR_ALREADY_EXISTS. (Fmake_directory_internal) [WINDOWSNT]: Invoke mkdir without the mask. (Fexpand_file_name): Test DOS_NT, not MSDOS. (Fexpand_file_name) [WINDOWSNT]: Accept // or \\ at start. Call dostonunix_filename for HOME envvar, for ~USER. Quote directory separators found in environment variables. (Fsubstitute_in_file_name): Test DOS_NT instead of MSDOS. (Fsubstitute_in_file_name) [WINDOWSNT]: Accept // or \\ at start. Work around alloca bug in MS compiler. (Ffile_name_directory): Test DOS_NT instead of MSDOS sometimes. But don't insert a drive letter on windows.
* *** empty log message ***Morten Welinder1994-10-171-0/+6
|
* (check_writable, check_executable): Test HAVE_EACCESS.Richard M. Stallman1994-10-071-2/+2
|
* (Ffile_regular_p): New function.Richard M. Stallman1994-10-051-37/+61
| | | | (syms_of_fileio): defsubr it.
* (Finsert_file_contents, Fwrite_region, Fdo_auto_save, Fset_buffer_auto_saved):Karl Heuer1994-10-041-12/+12
| | | | Don't use XFASTINT as an lvalue.
* (Finsert_file_contents): No longer necessary to set type separately.Karl Heuer1994-10-041-1/+0
|
* (Fdefault_file_modes, Finsert_file_contents, Fdo_auto_save): Use new accessorKarl Heuer1994-10-041-3/+3
| | | | macros instead of calling XSET directly.
* (Finsert_file_contents): set type of `end', not just the value.Karl Heuer1994-10-021-0/+1
|
* (check_writable, check_executable) [__HURD__]: Use eaccess.Richard M. Stallman1994-09-291-26/+2
|
* (Fdelete_file): Undo Sep 16 change.Karl Heuer1994-09-281-6/+2
|
* (Ffind_file_name_handler, Fcopy_file, Frename_file, Fadd_name_to_file,Karl Heuer1994-09-271-19/+18
| | | | | | Fmake_symbolic_link, Fwrite_region, Fverify_visited_file_modtime, Fdo_auto_save, Fread_file_name_internal, Fread_file_name): Use type test macros.
* (Ffile_writable_p): Use stat to test for existence.Richard M. Stallman1994-09-241-6/+71
| | | | | | | | (check_executable, check_writable): New functions. (Ffile_executable_p, Ffile_writable_p): Use the new functions. (Fread_file_name): If DEFAULT is nil and INITIAL is not, use INITIAL to set DEFAULT.
* (Ffile_writable_p): Don't use ro_fsys.Richard M. Stallman1994-09-181-28/+2
| | | | (ro_fsys): Deleted.
* (Fcopy_file): Use set_file_times, and check for the error return.Karl Heuer1994-09-181-1/+2
|
* (barf_or_query_if_file_exists): Fix declaration.Karl Heuer1994-09-171-0/+1
|
* (Finsert_file_contents) [MSDOS]: Don't re-gc-protect filename; delete unusedKarl Heuer1994-09-161-5/+0
| | | | variables.
* (Fdelete_file): Bind completion-ignored-extensions to nil.Karl Heuer1994-09-161-2/+6
|
* (Fset_default_file_modes): Doc fix.Richard M. Stallman1994-09-141-2/+2
|
* (Ffile_accessible_directory_p): Put back the gcpro.Karl Heuer1994-09-051-2/+9
|
* (Ffile_accessible_directory_p): No need for gcpro.Richard M. Stallman1994-08-301-6/+1
| | | | (Fwrite_region): unbind_to should take two args.
* (Fcopy_file, build_annotations, Fdo_auto_save): Delete unused variables.Karl Heuer1994-08-241-1/+0
|
* (Fmake_symbolic_link, Ffile_accessible_directory_p, Finsert_file_contents,Karl Heuer1994-08-241-15/+22
| | | | auto_save_error, Fwrite_region): Fix gcpro problems.
* (O_RDONLY): Defined.Richard M. Stallman1994-08-231-6/+19
| | | | | | (Finsert_file_contents, Fcopy_file): use it. (barf_or_query_if_file_exists, Ffile_exists_p): Use stat, not access. (Ffile_readable_p): Use open, not access.