aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fwrite_region): Do unwind the new unwind protect.Richard M. Stallman1994-07-241-3/+62
| | | | | | | | | (Vwrite_region_annotations_so_far): New variable. (syms_of_fileio): Set up Lisp var. (build_annotations): Handle annotate functions that switch buffers. Set Vwrite_region_annotations_so_far. (Fwrite_region): Handle change of buffer in build_annotations. Add an unwind protect to restore original buffer and kill the temp.
* (syms_of_fileio): Finish previous change.Richard M. Stallman1994-07-141-1/+1
|
* (Fmake_directory_internal): Use Qmake_directory_internal.Richard M. Stallman1994-07-121-4/+4
| | | | (syms_of_fileio): Set up Qmake_directory_internal, not Qmake_directory.
* (Ffile_name_directory, Ffile_name_nondirectory,Richard M. Stallman1994-07-091-6/+15
| | | | | | file_name_as_directory, directory_file_name, Fexpand_file_name, Ffile_name_absolute_p, Fsubstitute_in_file_name) [MSDOS]: Allow backslashed file names.
* (a_write): Loop while *ANNOT is listp, not consp. Previous code omittedRoland McGrath1994-06-281-1/+1
| | | | all data from output files when *ANNOT was nil.
* (a_write): Verify that *annot is a cons.Richard M. Stallman1994-06-271-1/+1
|
* (Finsert_file_contents): Fix check for non-regular files.Karl Heuer1994-06-251-11/+15
|
* (Finsert_file_contents): Check for beginning of file.Karl Heuer1994-05-261-0/+3
|
* (Fdelete_directory): Allow dir names as well as file names.Richard M. Stallman1994-05-221-2/+2
|
* (Finsert_file_contents): Declare buffer as unsignedRichard M. Stallman1994-05-201-1/+3
| | | | | | char. When comparing with file size convert same_at_start to distance to buffer start. If the file matches the buffer contents truncate the buffer to the size of the file.
* (Fwrite_region): Set update_mode_lines.Richard M. Stallman1994-05-191-0/+1
|
* (syms_of_fileio): Doc fix.Richard M. Stallman1994-05-191-2/+2
| | | | (Finsert_file_contents): Declare `buffer' as unsigned char.
* (Fdo_auto_save): Save listdesc as an integer, only if open.Richard M. Stallman1994-05-171-12/+6
| | | | (do_auto_save_unwind): Corresponding changes.
* (Fcopy_file): Close output before setting its times.Richard M. Stallman1994-05-141-4/+6
| | | | Close both before discarding the unwind protects.
* (Finsert_file_contents) [MSDOS]: Ignore the replace feature.Richard M. Stallman1994-05-101-1/+66
| | | | | | (Fdo_auto_save): Write a list of all auto save file names. (Vauto_save_list_file_name): Specify file name to put them in. (syms_of_fileio): Set up Lisp var.
* (inhibit-file-name-handers): Correct documentation.Richard M. Stallman1994-04-281-1/+1
|
* (Finsert_file_contents): Fix accessing buffer_file_typeRichard M. Stallman1994-04-271-4/+3
| | | | | since it is t or nil. Change to handle t or nil as value of find-buffer-file-type.
* (syms_of_fileio): New Lisp var inhibit-file-name-operation.Richard M. Stallman1994-04-231-17/+30
| | | | | (Ffind_file_name_handler): Obey that variable. Use new meaning for inhibit-file-name-handlers.
* (Ffind_file_name_handler): New argument OPERATION. All callers changed.Karl Heuer1994-04-221-37/+39
|
* (Finsert_file_contents): Fix test for unchanged file.Richard M. Stallman1994-04-151-1/+1
|
* [HAVE_UNISTD_H]: Include unistd.h.Richard M. Stallman1994-04-131-0/+4
|
* (Fdo_auto_save): Don't turn off auto save mode.Richard M. Stallman1994-04-051-5/+28
| | | | | | | | | Instead, store -1 in b->save_length. And don't auto save if there is -1 there. (Vinhibit_file_name_handlers): New var. (syms_of_fileio): Set up Lisp var. (Ffind_file_name_handler): Obey the variable.
* (Finsert_file_contents): Use assignment, not initialization.Karl Heuer1994-03-231-1/+2
|
* (Ffile_modes) [MSDOS]: set exec-bit based on file suffix.Karl Heuer1994-03-161-0/+13
|
* (Frename_file, Fcopy_file, Fadd_name_to_file, Fmake_symbolic_link): Fix typoKarl Heuer1994-03-161-8/+8
| | | | in previous change.
* (Frename_file): Use RETURN_UNGCPRO when run handler.Richard M. Stallman1994-03-151-8/+8
| | | | (Fcopy_file, Fadd_name_to_file, Fmake_symbolic_link): Likewise.
* (Fread_file_name): Delete docstring of second version of function, to avoidKarl Heuer1994-03-141-8/+3
| | | | confusing make-docfile.
* (Finsert_file_contents): Don't let same_at_end be less than same_at_start.Richard M. Stallman1994-03-141-0/+9
|
* (Fdo_auto_save): Doc fix.Richard M. Stallman1994-03-051-3/+2
|
* (Finsert_file_contents): Pass del_range_1 two ends, not a length.Richard M. Stallman1994-03-041-1/+1
|
* (Fread_file_name): Do the right thing when insert-default-directory is nil.Karl Heuer1994-03-031-2/+6
| | | | Allow for doubled dollar signs in dir when computing pos.
* (Finsert_file_contents): If undo_list was t, leave it t.Richard M. Stallman1994-03-031-3/+3
| | | | (Finsert_file_contents): Use del_range_1.
* (Finsert_file_contents): If REPLACE, always do lseek.Richard M. Stallman1994-02-231-12/+29
| | | | Exit main loop if INSERTED reaches TOTAL.
* (Finsert_file_contents): Fix previous change.Richard M. Stallman1994-02-171-0/+1
|
* (Finsert_file_contents): New arg REPLACE.Richard M. Stallman1994-02-171-5/+97
| | | | New feature to replace buffer contents with file contents.
* (Fsubstitute_in_file_name): Remove long-dead code that looked at USER beforeKarl Heuer1994-02-111-14/+0
| | | | LOGNAME.
* Use new name vmsdir.h.Richard M. Stallman1994-02-101-1/+1
|
* (Fdo_auto_save): Save echo_area_glyphs_length.Karl Heuer1994-02-101-1/+7
|
* (Fwrite_region): If FILENAME has no handler, see if VISIT has one.Richard M. Stallman1994-02-031-0/+3
|
* (double_dollars): New function.Richard M. Stallman1994-01-201-27/+38
| | | | | (Fread_file_name_internal): Use double_dollars. (Fread_file_name): Likewise.
* (Ffile_symlink_p): Doc fix.Richard M. Stallman1994-01-161-3/+3
|
* (Fdo_auto_save): If auto save times out, don't try again for 20 minutes.Richard M. Stallman1994-01-101-0/+27
| | | | | (Fclear_buffer_auto_save_failure): New function. (Fset_buffer_auto_saved): Clear auto_save_failure_time.
* (report_file_error): Use strerror instead of sys_errlist.Roland McGrath1994-01-081-4/+1
|
* Don't declare sys_errlist; declare strerror instead.Roland McGrath1994-01-081-6/+4
| | | | | (err_str): Macro removed. (Finsert_file_contents, Fwrite_region): Call strerror instead of err_str.
* [MSDOS]: #include "msdos.h" and <sys/param.h> needed forRichard M. Stallman1994-01-081-1/+177
| | | | | | | | | | | | | | | | the following changes. (Ffile_name_directory, Fexpand_file_name) [FILE_SYSTEM_CASE]: Apply case conversion if defined. (Ffile_name_directory, Ffile_name_nondirectory, file_name_as_directory, directory_file_name, Fexpand_file_name, Fsubstitute_in_file_name, expand_and_dir_to_file) [MSDOS]: Drive letter support. (Fexpand_file_name) [MSDOS]: Support for multiple default directories. (Ffile_writeable_p) [MSDOS]: Don't call access with file name ending in slash. (Finsert_file_contents) [MSDOS]: Determine file type by name (call find-buffer-file-type) and change CR+LF to LF if it is a text file. (Fwrite_region) [MSDOS]: Use text/binary mode as specified by buffer_file_type. (syms_of_fileio) [MSDOS]: Set Qfind_buffer_file_type. (Fsubstitute_in_file_name) [MSDOS]: Ignore case in environtment variable.
* (Fwrite_region): Don't change START and END from nilRichard M. Stallman1994-01-011-11/+12
| | | | until after checking for a magic handler.
* (Finsert_file_contents): Avoid setting buffer-file-name field if ran a handler.Richard M. Stallman1993-12-311-5/+5
| | | | Get rid of local var `handled'.
* (Finsert_file_contents): Don't run after change hookRichard M. Stallman1993-12-311-2/+7
| | | | | if inserted is 0. New local `handled', set if run handler. Avoid setting modtime field if ran a handler.
* (Fwrite_region): If handler, don't mess with modtime.Richard M. Stallman1993-12-251-5/+0
| | | | (Finsert_file_contents): Likewise.
* (Fmake_symbolic_link): Do expand FILENAME if starts with ~.Richard M. Stallman1993-12-231-4/+11
| | | | (Fread_file_name): If defalt is nil and user tries to use it, signal an error.