| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
first try comparing block by block; if we discover a need for
nontrivial code conversion, give up and try convert-whole-file method.
|
|
|
|
|
|
|
| |
before we see if REPLACE can be handled.
Do handle REPLACE even if code conversion is needed.
(Fcopy_file): Fix previous change.
|
|
|
|
|
| |
(Qfile_date_error): New variable.
(syms_of_fileio): Set it up.
|
|
|
|
| |
character code conversion if enable-multibyte-characters is nil.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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'.
|
| |
|
|
|
|
| |
when REPLACE is non-nil.
|
|
|
|
| |
existing file when appending.
|
|
|
|
| |
(Fread_file_name): Don't insert DIR or INITIAL if it isn't a string.
|
|
|
|
|
| |
(Ffile_readable_p): Return immediately if stat fails.
Call S_ISFIFO correctly.
|
|
|
|
| |
That is now only in Fsubstitute_in_file_name.
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
|
|
|
|
| |
(Qaccess_file): New variable.
(syms_of_fileio): defsubr function; init and staticpro Qaccess_file.
|
|
|
|
| |
region came from; pass this to `format-annotate-function'.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
change, which was incorrect and isn't strictly required.
|
|
|
|
| |
(expand_file_name): Apply DRIVE_LETTER macro to drive names.
|
|
|
|
|
|
| |
when newdir is just "//".
(Ffile_name_directory) [WINDOWSNT]: Return Qnil if filename is a
partial UNC name such as "//foo".
|
|
|
|
| |
to compile on all platforms.
|
|
|
|
| |
or ~user, but don't collapse the newdir prefix in that case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(Ffile_exists_p, Ffile_executable_p, Ffile_readable_p)
(Ffile_writable_p, Ffile_directory_p, Ffile_regular_p)
(Ffile_modes, Fset_file_modes, Ffile_newer_than_file_p)
(expand_and_dir_to_file): Rename abspath to absname.
(CORRECT_DIR_SEPS) [DOS_NT]: New macro.
(IS_DRIVE) [DOS_NT]: Added separate definitions for DOS and NT.
(Ffile_name_directory) [DOS_NT]: Simplify code to match change in
getdefdir in msdos.c. Ignore embedded colons. Correct dir seps.
(Ffile_name_nondirectory) [DOS_NT]: Ignore embedded colons.
Correct IS_ANY_SEP to IS_DIRECTORY_SEP.
(file_name_as_directory) [DOS_NT]: Correct dir seps.
Correct IS_ANY_SEP to IS_DIRECTORY_SEP.
(directory_file_name) [DOS_NT]: Correct dir seps.
(Fmake_temp_name) [DOS_NT: Correct dir seps.
(Fexpand_file_name) [mostly DOS_NT]: Remove relpath, tmp and
defdir variables; init drive to 0.
Correctly detect when default_directory is absolute.
Be strict when looking for MSDOS drive specifier; defer calling
getdefdir. Ignore drive specifier if name now has UNC prefix.
Correctly recognise if name is not absolute when trying simple
method to expand; return original string if possible.
Skip dir sep after ~ or ~user.
Use getpwnam instead of HOME for ~user on NT.
Handle error return from getdefdir.
Correctly detect if newdir is absolute before using default_directory.
Handle case where newdir is not absolute - expand relative to
current working dir if necessary (instead of calling getdisk
later). Only keep UNC prefix if nm starts with dir sep.
Replace kludgy handling of drive spec in newdir. Correct dir seps.
(Fexpand_file_name) [!DOS_NT]: Fix incorrect expansion of
"/foo/../bar" -> "//bar".
(Fsubstitute_in_file_name) [DOS_NT]: Correct dir seps for NT as
well. Merge equivalent #ifdef APOLLO and WINDOWSNT cases. Ignore
embedded colons and be strict about drive specs.
(Fcopy_file) [DOS_NT]: Do dev/inode check on NT.
(Ffile_name_absolute_p) [DOS_NT]: Be strict about drive specs.
(check_executable) [DOS_NT]: Test st_mode on NT.
(Ffile_readable_p) [DOS_NT]: Use access instead of open on NT.
(Ffile_modes) [DOS_NT]: Don't embelish st_mode value on NT.
(Fread_file_name) [DOS_NT]: Correct dir seps in HOME.
(syms_of_fileio): Add Vdirectory_sep_char.
|
| |
|
| |
|
| |
|
|
|
|
| |
that default_directory is already absolute so need not be expanded.
|
| |
|
|
|
|
|
| |
one character before the dot, in case `prefix' is only a directory
name.
|
|
|
|
| |
the prefix of the temporary file name.
|
| |
|
|
|
|
| |
(Fdo_auto_save): Unconditionally set up unwind-protect.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(Fcopy_file): Don't chmod output file on MSDOS
unless we have DJGPP version 2.
|
| |
|
|
|
|
| |
set selected_window->start_at_line_beg.
|
|
|
|
| |
(Fcopy_file): Error if input and output are the same file.
|
|
|
|
| |
Look for handler for the new name as well as for the target.
|
|
|
|
| |
(auto_save_1): Pass new arg.
|