Commit graph

464 commits

Author SHA1 Message Date
Dave Love
189d79a123 (_GNU_SOURCE, HAVE_FSYNC): Don't define. 2002-11-18 15:39:55 +00:00
Richard M. Stallman
a8c44e3998 (Fcopy_file): Fix backward test of KEEP_TIME. 2002-10-16 15:56:31 +00:00
Stefan Monnier
4a9f0faea6 (Fread_file_name): Use empty_string. Use if-expr to simplify. 2002-10-12 22:08:20 +00:00
Richard M. Stallman
5794dd61a0 (Fdo_auto_save): Catch error making directory.
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.
2002-09-11 02:03:24 +00:00
Eli Zaretskii
100c44b777 (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
`const' since CORRECT_DIR_SEPS modifies its target.
2002-08-19 17:24:08 +00:00
Juanma Barranquero
8cfd6446cb (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP. 2002-07-19 21:26:14 +00:00
Juanma Barranquero
0dac4f8591 (Ffile_name_as_directory): Fix argument name in docstring. 2002-07-19 16:30:14 +00:00
Juanma Barranquero
2a7547632f (syms_of_fileio): Remove redundant deprecation info. 2002-07-19 11:39:39 +00:00
Ken Raeburn
19290c65c2 (report_file_error): String pointer args now point to
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.
2002-07-16 19:48:17 +00:00
Ken Raeburn
942dc83857 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
(Fread_file_name): Use SREF, SSET.
2002-07-16 15:49:16 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Richard M. Stallman
5f4e6aa992 (Fwrite_region): Doc fix. 2002-07-12 17:36:47 +00:00
Juanma Barranquero
aed1337830 Use macro SPECPDL_INDEX. 2002-07-11 14:18:02 +00:00
Juanma Barranquero
331379bfa7 Rename BINDING_STACK_SIZE to SPECPDL_INDEX. 2002-07-10 08:45:24 +00:00
Juanma Barranquero
c4174fbbd3 (read_file_name_cleanup): Add missing return. 2002-06-26 08:43:23 +00:00
Pavel Janík
905a427657 (choose_write_coding_system): Call select-safe-coding-system properly. 2002-06-05 05:16:48 +00:00
Richard M. Stallman
7721868125 (choose_write_coding_system):
Pass FILE arg to Vselect_safe_coding_system_function.
2002-06-03 22:36:06 +00:00
Richard M. Stallman
bf3428a1e4 (Fwrite_region): If START is a string, don't make any annotations. 2002-05-28 20:25:46 +00:00
Kim F. Storm
da46f04f2c (Fread_file_name_internal): Added brute-force
speed up for using predicate file-directory-p.
2002-05-28 09:03:22 +00:00
Kim F. Storm
59ffe07d36 (Vread_file_name_function, Vread_file_name_predicate):
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.
2002-05-27 22:05:00 +00:00
Stefan Monnier
28c3eb5ab5 (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
(Finsert_file_contents, build_annotations): Use XCAR, XCDR.
(Vwrite_region_annotate_functions): Docstring fix.
2002-05-23 15:22:47 +00:00
Richard M. Stallman
685fc579ad (Finsert_file_contents):
Don't call temp_output_buffer_setup--do just part, by hand.
2002-04-13 17:49:34 +00:00
Jason Rumney
02cca86b7c (Fcopy_file): Fix last change. 2002-03-09 10:20:18 +00:00
Jason Rumney
ad497129ba (Fcopy_file) [WINDOWS_NT]: Ensure file is not
read-only when setting modified time.
2002-03-09 00:38:54 +00:00
Richard M. Stallman
f9e6f049b3 (Fmake_temp_name): Doc fix. 2002-03-03 21:55:33 +00:00
Eli Zaretskii
b135bd4ced (Fsubstitute_in_file_name): Fix the change from 2002-02-08. 2002-02-26 18:42:25 +00:00
Eli Zaretskii
dba493fec3 (Fsubstitute_in_file_name): If the file name includes ~user,
and there's no such user, don't discard everything before ~user.
2002-02-08 19:16:31 +00:00
Richard M. Stallman
fd91d0d468 (Fdo_auto_save): Improve "auto save disabled" msg. 2002-02-03 10:36:49 +00:00
Richard M. Stallman
38da540df8 (Fdo_auto_save): If NO_MESSAGE, don't call push_message. 2001-12-29 20:12:45 +00:00
Eli Zaretskii
dd693537fd (Fexpand_file_name) [DOS_NT]: Use the root directory
of the current drive as the fallback for default_directory.
2001-12-19 18:55:01 +00:00
Richard M. Stallman
c2efea2593 (Fwrite_region): Doc fix. 2001-12-12 22:53:16 +00:00
Richard M. Stallman
8a2a6032da Test GNU_LINUX, not LINUX. 2001-12-11 22:20:20 +00:00
Richard M. Stallman
691d6e9e6f (read_non_regular): Delete Fsignal call. 2001-12-02 05:04:19 +00:00
Pavel Janík
346ebf538d (file-name-coding-system, default-file-name-coding-system): Doc fix (links
to referenced variables added).
2001-11-29 06:54:34 +00:00
Richard M. Stallman
204ee27163 (Ffind_file_name_handler): Avoid initializer for `result'. 2001-11-29 00:52:55 +00:00
Stefan Monnier
8d2ced5397 (Ffind_file_name_handler): Give precedence to handlers
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.
2001-11-26 22:54:37 +00:00
Stefan Monnier
59fac292ee (Fwrite_region): Move choose_write_coding_system to after build_annotations. 2001-11-19 21:50:44 +00:00
Richard M. Stallman
65b7d3e7a7 (Fwrite_region): Avoid initializer for Lisp_Object. 2001-11-17 21:08:52 +00:00
Stefan Monnier
236a12f2d9 (build_annotations): Split off the tail.
(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.
2001-11-17 01:24:01 +00:00
Stefan Monnier
7c82a4a922 (choose_write_coding_system): New fun, extracted from Fwrite_region.
(Fwrite_region): Use it.
2001-11-16 14:49:20 +00:00
Richard M. Stallman
e385ec41c0 (Ffile_accessible_directory_p): Doc fix. 2001-11-14 00:09:27 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Eli Zaretskii
4947563510 (Faccess_file): Run the argument filename through
Fexpand_file_name, before using it.
2001-10-26 21:38:40 +00:00
Eli Zaretskii
4887597a1c Revert last change (which removed old commented-out
version of expand-file-name).  Add a comment that explains why
this old version should not be removed.
2001-10-25 13:33:01 +00:00
Pavel Janík
f958c5ac2f Remove unused code. 2001-10-22 06:26:52 +00:00
Pavel Janík
888ebd132e (Finsert_file_contents): Remove unused variable `gap_size'. 2001-10-21 13:28:46 +00:00
Pavel Janík
8c1a1077c0 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-21 12:13:46 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Gerd Moellmann
32c82ac0a1 Don't define min/max. 2001-10-08 08:08:08 +00:00
Gerd Moellmann
a9d14e54a8 (Fcopy_file): If NEWNAME is a directory copy FILE there. 2001-10-05 12:50:48 +00:00