summaryrefslogtreecommitdiff
path: root/src/fileio.c
Commit message (Collapse)AuthorAgeFilesLines
* (Finsert_file_contents): If enable-multibyte-charactersKenichi Handa1997-07-071-7/+11
| | | | | | is nil, decode character code by emacs-mule. (Fwrite_region): Use buffer-file-coding-system for encoding if enable-multibyte-characters is nil.
* Fix bugs with inappropriate mixing of Lisp_Object with int.Richard M. Stallman1997-07-041-1/+2
|
* (Finsert_file_contents): Doc-string fixed. CallKenichi Handa1997-07-021-4/+5
| | | | | Ffind_operation_coding_system. (Fwrite_region): Call Ffind_operation_coding_system.
* (Finsert_file_contents): Pass new arg to prepare_to_modify_buffer.Richard M. Stallman1997-06-251-1/+1
|
* (Ffile_directory_p): Doc fix.Karl Heuer1997-06-241-3/+1
|
* (Fdo_auto_save): Use stdio to write the save-list file.Richard M. Stallman1997-06-161-25/+31
| | | | | (Finsert_file_contents): Don't give up on the fast replace method if the coding remains undecided.
* (Fwrite_region): Fix previous doc change.Erik Naggum1997-06-101-0/+1
|
* (Fwrite_region): Cancel the 7th argument CODING_SYSTEMKenichi Handa1997-06-091-16/+6
| | | | | added by the previous change. (auto_save_1): Adjusted for the above change.
* (Fwrite_region, build_annotations):Richard M. Stallman1997-06-021-6/+6
| | | | Set start and end using XFASTINT.
* (Fdo_auto_save): Pass new arg to sit_for.Richard M. Stallman1997-05-271-1/+1
|
* Name change through the code:Kenichi Handa1997-05-161-4/+4
| | | | | | | | | | coding-category-internal => coding-category-emacs-mule, XXX_coding_internal => XXX_coding_emacs_mule, coding_type_internal => coding_type_emacs_mule, coding_type_automatic => coding_type_undecided, CODING_CATEGORY_MASK_INTERNAL => CODING_CATEGORY_MASK_EMACS_MULE, CODING_CATEGORY_IDX_INTERNAL => CODING_CATEGORY_IDX_EMACS_MULE, CODING_EOL_AUTOMATIC => CODING_EOL_UNDECIDED.
* (Finsert_file_contents): Use xrealloc too.Richard M. Stallman1997-05-151-1/+1
|
* (Finsert_file_contents): Use xmalloc. not malloc.Richard M. Stallman1997-05-151-3/+3
| | | | Check correctly for whether no code translation is needed.
* (Fwrite_region): Add 7th optional argKenichi Handa1997-05-101-56/+60
| | | | | | | | | | | | | CODING_SYSTEM. Move gap after a newline code if we are encoding in a coding system which requires designation sequences to be put at beginning of line. Set coding.last_block to 1 before calling a_write for an empty file. (build_annotations): Code tuned up for handling pre_write_conversion of a coding system. (e_write): Delete code for handling carryover of code conversion. It is now handled in encode_coding. (auto_save_1): Supply 7th new arg CODING_SYSTEM as Qnil to Fwrite_region.
* (Fread_file_name): Finish previous change.Richard M. Stallman1997-05-101-1/+1
|
* (Fread_file_name): Pass default to Fcompleting_read.Richard M. Stallman1997-05-071-1/+1
|
* (Fexpand_file_name): Check length > 0 when necessary.Richard M. Stallman1997-04-291-1/+1
|
* (Fsubstitute_in_file_name): Use xnm uniformly, never nm,Richard M. Stallman1997-04-271-1/+1
| | | | when handling /~ and // at the end.
* (Fwrite_region): GCPRO `start' near the beginning.Richard M. Stallman1997-04-251-1/+1
|
* (Fexpand_file_name): Fix expansion of "/foo/../".Richard M. Stallman1997-04-181-1/+2
|
* (Finsert_file_contents): Do call signal_after_changeRichard M. Stallman1997-04-111-2/+7
| | | | | | when REPLACE is handled by reading directly from the file. Use insert_1 to insert replacement text, to avoid query about whether to modify the buffer.
* (Fcopy_file): Fix error message.Richard M. Stallman1997-04-021-1/+1
|
* (Finsert_file_contents): Handle non-regular files.Richard M. Stallman1997-04-021-19/+47
|
* (Finsert_file_contents): When handling REPLACE,Richard M. Stallman1997-04-021-55/+77
| | | | | first try comparing block by block; if we discover a need for nontrivial code conversion, give up and try convert-whole-file method.
* (Finsert_file_contents): Determine the character codingRichard M. Stallman1997-04-011-35/+198
| | | | | | | before we see if REPLACE can be handled. Do handle REPLACE even if code conversion is needed. (Fcopy_file): Fix previous change.
* (Fcopy_file): Use Qfile_date_error if can't set file date.Richard M. Stallman1997-04-011-2/+12
| | | | | (Qfile_date_error): New variable. (syms_of_fileio): Set it up.
* (Finsert_file_contents, Fwrite_region): Do not performKenichi Handa1997-02-271-2/+4
| | | | character code conversion if enable-multibyte-characters is nil.
* Include charset.h and coding.h.Karl Heuer1997-02-221-54/+234
| | | | | | | | | | | | | | | | (READ_BUF_SIZE): New macro. (Finsert_file_contents): Refer to a coding system in the docstring. Perform character code conversion of a text read in. (Fwrite_region): Refer to a coding system in the docstring. Setup a coding system for character code conversion. Pass a new arg `pre_write_conversion' (Lisp function) to build_annotations. Pass a new arg `coding' to a_write. (build_annotations): Handle the new arg. (a_write): Handle the new arg `coding' by passing it to e_write. (WRITE_BUF_SIZE): New macro. (e_write): Perform character code conversion of a text to write out according to the new arg `coding'.
* Fix previous change.Richard M. Stallman1996-12-161-1/+4
|
* (Finsert_file_contents): Handle BEG and END non-nilRichard M. Stallman1996-12-161-6/+11
| | | | when REPLACE is non-nil.
* (Fwrite_region): Be careful not to destroy contents ofRichard M. Stallman1996-12-111-1/+1
| | | | existing file when appending.
* (Fread_file_name_internal): Verify STRING is a string.Richard M. Stallman1996-12-091-2/+4
| | | | (Fread_file_name): Don't insert DIR or INITIAL if it isn't a string.
* (USG5 or BSD_SYSTEM or LINUX): Include fcntl.h.Richard M. Stallman1996-11-071-1/+22
| | | | | (Ffile_readable_p): Return immediately if stat fails. Call S_ISFIFO correctly.
* (Fexpand_file_name): No longer discard .../ before another / or ~.Richard M. Stallman1996-10-261-23/+0
| | | | That is now only in Fsubstitute_in_file_name.
* (Vuser_login_name): Declared extern.Richard M. Stallman1996-09-251-2/+12
| | | | | | (minibuf_level): extern decl moved to top level. (Fwrite_region): Query before writing to a file that is locked, even if it is locked by the same user.
* (syms_of_fileio): staticpro Qset_visited_file_modtime.Erik Naggum1996-09-171-0/+1
|
* Change all references from point to PT.Karl Heuer1996-09-111-7/+7
|
* (Faccess_file): New function.Richard M. Stallman1996-09-101-3/+33
| | | | | (Qaccess_file): New variable. (syms_of_fileio): defsubr function; init and staticpro Qaccess_file.
* (build_annotations): Remember original buffer that theRichard M. Stallman1996-09-011-1/+5
| | | | region came from; pass this to `format-annotate-function'.
* (check_writable): Use euidaccess, not eaccess.Karl Heuer1996-07-201-2/+2
|
* (Fcopy_file): Use st_ino under DJGPP v2 and later toKarl Heuer1996-07-071-4/+4
| | | | | | | prevent copying file into itself. (check_executable): DJGPP v2 `stat' doesn't need to be augmented in case of executable files. (Ffile_modes): Use `stat' results as is in DJGPP v2 and later.
* (DRIVE_LETTER) [WINDOWSNT]: Lower-case drive letters.Miles Bader1996-07-071-6/+4
|
* (DRIVE_LETTER) [MSDOS]: Lower-case drive letters.Miles Bader1996-07-021-1/+4
|
* (check_executable): Use euidaccess, not eaccess.Richard M. Stallman1996-06-281-2/+2
|
* (Fexpand_file_name): When simplifying /foo/.., keep the initial slash.Richard M. Stallman1996-06-131-0/+2
|
* (Ffile_name_directory) [WINDOWSNT]: Remove previousRichard M. Stallman1996-06-061-6/+0
| | | | change, which was incorrect and isn't strictly required.
* (DRIVE_LETTER): [DOS_NT] New macro.Richard M. Stallman1996-06-031-3/+6
| | | | (expand_file_name): Apply DRIVE_LETTER macro to drive names.
* (Fexpand_file_name) [WINDOWSNT]: Don't strip trailing /Richard M. Stallman1996-06-011-2/+13
| | | | | | when newdir is just "//". (Ffile_name_directory) [WINDOWSNT]: Return Qnil if filename is a partial UNC name such as "//foo".
* (Fexpand_file_name) [DOS_NT]: Correct the `if' clauseRichard M. Stallman1996-05-011-3/+3
| | | | to compile on all platforms.
* (Fexpand_file_name) [DOS_NT]: Keep dir sep following ~Richard M. Stallman1996-04-291-7/+4
| | | | or ~user, but don't collapse the newdir prefix in that case.