aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fdo_auto_save): Catch error making directory.Richard M. Stallman2002-09-111-6/+29
| | | | | | | | Only call push_message if we need to. At the same time, make an unwind-protect to pop it. Rename local message_p to old_message_p. (do_auto_save_make_dir, do_auto_save_eh): New functions. (do_auto_save_unwind): Don't call pop_message.
* (Ffile_name_directory) [DOS_NT]: Don't declare `beg'Eli Zaretskii2002-08-191-0/+4
| | | | `const' since CORRECT_DIR_SEPS modifies its target.
* (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.Juanma Barranquero2002-07-191-1/+2
|
* (Ffile_name_as_directory): Fix argument name in docstring.Juanma Barranquero2002-07-191-1/+1
|
* (syms_of_fileio): Remove redundant deprecation info.Juanma Barranquero2002-07-191-4/+1
|
* (report_file_error): String pointer args now point toKen Raeburn2002-07-161-9/+10
| | | | | | | | const. (Ffile_name_directory, Ffile_name_nondirectory): (Fmake_directory_internal, Fdelete_directory): (Ffile_name_absolute_p, Fwrite_region, double_dollars): Use const for pointer to lisp string data.
* * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.Ken Raeburn2002-07-161-7/+7
| | | | (Fread_file_name): Use SREF, SSET.
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-139/+139
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* (Fwrite_region): Doc fix.Richard M. Stallman2002-07-121-1/+1
|
* Use macro SPECPDL_INDEX.Juanma Barranquero2002-07-111-7/+7
|
* Rename BINDING_STACK_SIZE to SPECPDL_INDEX.Juanma Barranquero2002-07-101-1/+1
|
* (read_file_name_cleanup): Add missing return.Juanma Barranquero2002-06-261-1/+1
|
* (choose_write_coding_system): Call select-safe-coding-system properly.Pavel Janík2002-06-051-2/+2
|
* (choose_write_coding_system):Richard M. Stallman2002-06-031-1/+2
| | | | Pass FILE arg to Vselect_safe_coding_system_function.
* (Fwrite_region): If START is a string, don't make any annotations.Richard M. Stallman2002-05-281-9/+17
|
* (Fread_file_name_internal): Added brute-forceKim F. Storm2002-05-281-9/+30
| | | | speed up for using predicate file-directory-p.
* (Vread_file_name_function, Vread_file_name_predicate):Kim F. Storm2002-05-271-4/+65
| | | | | | | | | | | | New variables. (syms_of_fileio): DEFVAR_LISP them. (read_file_name_cleanup): New unwind function. (Fread_file_name_internal): Only return completions satifying Vread_file_name_predicate. Temporarily unwind protect and rebind default-directory while checking completions against the predicate. (Fread_file_name): Added PREDICATE argument. Specbind it to Vread_file_name_predicate during completion. Call Vread_file_name_function to read the file name if non-nil.
* (read_non_regular, Finsert_file_contents): Use BEG_BYTE.Stefan Monnier2002-05-231-11/+12
| | | | | (Finsert_file_contents, build_annotations): Use XCAR, XCDR. (Vwrite_region_annotate_functions): Docstring fix.
* (Finsert_file_contents):Richard M. Stallman2002-04-131-10/+15
| | | | Don't call temp_output_buffer_setup--do just part, by hand.
* (Fcopy_file): Fix last change.Jason Rumney2002-03-091-1/+1
|
* (Fcopy_file) [WINDOWS_NT]: Ensure file is notJason Rumney2002-03-091-5/+18
| | | | read-only when setting modified time.
* (Fmake_temp_name): Doc fix.Richard M. Stallman2002-03-031-1/+5
|
* (Fsubstitute_in_file_name): Fix the change from 2002-02-08.Eli Zaretskii2002-02-261-2/+2
|
* (Fsubstitute_in_file_name): If the file name includes ~user,Eli Zaretskii2002-02-081-2/+22
| | | | and there's no such user, don't discard everything before ~user.
* (Fdo_auto_save): Improve "auto save disabled" msg.Richard M. Stallman2002-02-031-1/+1
|
* (Fdo_auto_save): If NO_MESSAGE, don't call push_message.Richard M. Stallman2001-12-291-4/+10
|
* (Fexpand_file_name) [DOS_NT]: Use the root directoryEli Zaretskii2001-12-191-1/+17
| | | | of the current drive as the fallback for default_directory.
* (Fwrite_region): Doc fix.Richard M. Stallman2001-12-121-4/+7
|
* Test GNU_LINUX, not LINUX.Richard M. Stallman2001-12-111-1/+1
|
* (read_non_regular): Delete Fsignal call.Richard M. Stallman2001-12-021-1/+0
|
* (file-name-coding-system, default-file-name-coding-system): Doc fix (linksPavel Janík2001-11-291-4/+4
| | | | to referenced variables added).
* (Ffind_file_name_handler): Avoid initializer for `result'.Richard M. Stallman2001-11-291-1/+2
|
* (Ffind_file_name_handler): Give precedence to handlersStefan Monnier2001-11-261-10/+22
| | | | | | which match the end of the file-name. (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR is not a valid env var, but leave it as is instead.
* (Fwrite_region): Move choose_write_coding_system to after build_annotations.Stefan Monnier2001-11-191-9/+9
|
* (Fwrite_region): Avoid initializer for Lisp_Object.Richard M. Stallman2001-11-171-1/+3
|
* (build_annotations): Split off the tail.Stefan Monnier2001-11-171-8/+32
| | | | | | (build_annotations_2): New fun. Extracted from build_annotations. (Fwrite_region): Split the call to build_annotations into two calls to build_annotations and build_annotations_2.
* (choose_write_coding_system): New fun, extracted from Fwrite_region.Stefan Monnier2001-11-161-91/+100
| | | | (Fwrite_region): Use it.
* (Ffile_accessible_directory_p): Doc fix.Richard M. Stallman2001-11-141-2/+3
|
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-45/+45
|
* (Faccess_file): Run the argument filename throughEli Zaretskii2001-10-261-4/+6
| | | | Fexpand_file_name, before using it.
* Revert last change (which removed old commented-outEli Zaretskii2001-10-251-0/+333
| | | | | version of expand-file-name). Add a comment that explains why this old version should not be removed.
* Remove unused code.Pavel Janík2001-10-221-323/+0
|
* (Finsert_file_contents): Remove unused variable `gap_size'.Pavel Janík2001-10-211-1/+0
|
* Change doc-string comments to `new style' [w/`doc:' keyword].Pavel Janík2001-10-211-366/+367
|
* Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimentingKen Raeburn2001-10-161-3/+3
| | | | with lisp system changes.
* Don't define min/max.Gerd Moellmann2001-10-081-3/+0
|
* (Fcopy_file): If NEWNAME is a directory copy FILE there.Gerd Moellmann2001-10-051-1/+6
|
* (Finsert_file_contents): If REPLACE is non-nil, stopGerd Moellmann2001-09-261-1/+4
| | | | reading at EOF.
* (Ffile_symlink_p): Fix last change.Gerd Moellmann2001-09-141-6/+9
|
* (Ffile_symlink_p): If readlink returns ERANGE, takeGerd Moellmann2001-09-131-12/+19
| | | | that to mean that the buffer is too small.