aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (Finsert_file_contents): Don't call signal_after_changeRichard M. Stallman1993-11-231-1/+2
| | | | if we did not call prepare_to_modify_buffer.
* (syms_of_fileio): Fix missing \n\'s.Richard M. Stallman1993-11-121-10/+10
|
* (Fwrite_region): Fix minor bugs in POS arg to awrite.Richard M. Stallman1993-11-101-8/+9
|
* (Fcopy_file): Don't allow the copying of anything other than regularBrian Fox1993-10-251-1/+28
| | | | files or symlink files.
* (Fcar_less_than_car): Fix typo in previous change.Richard M. Stallman1993-10-141-1/+1
|
* (Vafter_insert_file_functions): New variable.Richard M. Stallman1993-10-091-14/+164
| | | | | | | | | | | (Vwrite_region_annotate_functions): New variable. (Qcar_less_than_car): New variable. (Fcar_less_than_car): New function. (syms_of_fileio): Make Lisp variables and function available. staticpro Qcar_less_than_car. (a_write, build_annotations): New functions. (Fwrite_region): Call them. (Finsert_file_contents): Run the Vafter_insert_file_functions.
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (expand_and_dir_to_file): Use Fdirectory_file_name.Richard M. Stallman1993-08-081-2/+2
|
* (expand_and_dir_to_file): Remove final / by copying abspath.Richard M. Stallman1993-08-041-10/+3
|
* (Finsert_file_contents): Don't call prepare_to_modify_bufferRichard M. Stallman1993-08-011-1/+1
| | | | if inserting zero characters.
* (Fdo_auto_save): Temporarily clear Vquit_flag.Richard M. Stallman1993-07-251-0/+8
|
* (Frename_file): After prompting for ok-if-already-exists, pass only nil orRoland McGrath1993-07-031-1/+4
| | | | t to copy-file, never an integer.
* * fileio.c (Fset_visited_file_modtime): We're only passing twoJim Blandy1993-06-191-1/+1
| | | | arguments to the file name handler; use call2, not call3.
* * fileio.c (Finsert_file_contents): Two new args, BEG and END.Jim Blandy1993-06-171-13/+43
|
* (Fset_visited_file_modtime): Don't give the handlerRichard M. Stallman1993-06-141-1/+2
| | | | the filename as an argument.
* (Fcopy_file): Pass all the args to the handler.Richard M. Stallman1993-06-131-15/+15
| | | | | | | | (Fwrite_region): Use call6. (Frename_file): Look for handler for newname. (Fadd_name_to_file): Pass arg ok_if_already_exists to handler. (Fmake_symbolic_link): Likewise. (Ffile_newer_than_file_p): Check both file names for handler.