aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fexpand_file_name): Fix confusion in detectingRichard M. Stallman1996-02-271-3/+8
| | | | that default_directory is already absolute so need not be expanded.
* (Fdo_auto_save): Pause before restoring old message.Karl Heuer1996-02-211-1/+4
|
* (Fmake_temp_name) [MSDOS]: Make sure there is at leastKarl Heuer1996-02-161-2/+2
| | | | | one character before the dot, in case `prefix' is only a directory name.
* (Fmake_temp_name) [MS-DOS]: Allow upto 8 characters inRichard M. Stallman1996-02-081-0/+6
| | | | the prefix of the temporary file name.
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* (do_auto_save_unwind): Don't close DESC if DESC < 0.Karl Heuer1996-01-091-3/+3
| | | | (Fdo_auto_save): Unconditionally set up unwind-protect.
* (Ffile_name_directory, Ffile_name_nondirectory, Ffile_name_as_directory,Erik Naggum1996-01-091-131/+131
| | | | | | | | Fdirectory_file_name, Fexpand_file_name, Fsubstitute_in_file_name, Fcopy_file, Fmake_directory_internal, Fdelete_directory, Fdelete_file, Frename_file, Fadd_name_to_file, Fdefine_logical_name, Ffile_modes, Fset_file_modes, Fset_default_file_modes, Fdo_auto_save, Fread_file_name): Harmonize arguments with documentation.
* Comment fixes.Karl Heuer1996-01-051-3/+3
|
* (Ffile_readable_p) [MSDOS]: Use access rather than open.Richard M. Stallman1995-12-311-0/+8
|
* (syms_of_fileio): Doc fix.Karl Heuer1995-12-211-1/+4
|
* (check_executable) [DOS_NT]: Treat all dirs as executable.Richard M. Stallman1995-11-141-1/+13
| | | | | (Fcopy_file): Don't chmod output file on MSDOS unless we have DJGPP version 2.
* (Fwrite_region): Move the code that writes annotations for empty files.Richard M. Stallman1995-11-101-7/+6
|
* (Finsert_file_contents): If replacing,Richard M. Stallman1995-10-141-0/+4
| | | | set selected_window->start_at_line_beg.
* (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
|