Richard M. Stallman
dbd04e0102
(Fread_file_name_internal): Call double_dollars when `changed' is set.
1994-08-04 23:36:07 +00:00
Richard M. Stallman
6fc6f94bb2
(Fwrite_region): Do unwind the new unwind protect.
...
(Vwrite_region_annotations_so_far): New variable.
(syms_of_fileio): Set up Lisp var.
(build_annotations): Handle annotate functions that switch buffers.
Set Vwrite_region_annotations_so_far.
(Fwrite_region): Handle change of buffer in build_annotations.
Add an unwind protect to restore original buffer and kill the temp.
1994-07-24 05:42:51 +00:00
Richard M. Stallman
c34b559de0
(syms_of_fileio): Finish previous change.
1994-07-14 03:39:04 +00:00
Richard M. Stallman
a6e6e718a2
(Fmake_directory_internal): Use Qmake_directory_internal.
...
(syms_of_fileio): Set up Qmake_directory_internal, not Qmake_directory.
1994-07-12 21:03:03 +00:00
Richard M. Stallman
a5a1cc0608
(Ffile_name_directory, Ffile_name_nondirectory,
...
file_name_as_directory, directory_file_name, Fexpand_file_name,
Ffile_name_absolute_p, Fsubstitute_in_file_name) [MSDOS]:
Allow backslashed file names.
1994-07-09 19:10:16 +00:00
Roland McGrath
eb15aa1822
(a_write): Loop while *ANNOT is listp, not consp. Previous code omitted
...
all data from output files when *ANNOT was nil.
1994-06-28 19:00:30 +00:00
Richard M. Stallman
f4a3a8c96b
(a_write): Verify that *annot is a cons.
1994-06-27 20:44:08 +00:00
Karl Heuer
99bc28f43e
(Finsert_file_contents): Fix check for non-regular files.
1994-06-25 00:13:53 +00:00
Karl Heuer
fc81fa9eaf
(Finsert_file_contents): Check for beginning of file.
1994-05-26 22:30:47 +00:00
Richard M. Stallman
1691b32b59
(Fdelete_directory): Allow dir names as well as file names.
1994-05-22 01:40:44 +00:00
Richard M. Stallman
1051b3b3ef
(Finsert_file_contents): Declare buffer as unsigned
...
char. When comparing with file size convert same_at_start to
distance to buffer start. If the file matches the buffer
contents truncate the buffer to the size of the file.
1994-05-20 23:14:58 +00:00
Richard M. Stallman
f4226e8999
(Fwrite_region): Set update_mode_lines.
1994-05-19 05:54:51 +00:00
Richard M. Stallman
268466edbe
(syms_of_fileio): Doc fix.
...
(Finsert_file_contents): Declare `buffer' as unsigned char.
1994-05-19 05:20:27 +00:00
Richard M. Stallman
15fa1468c1
(Fdo_auto_save): Save listdesc as an integer, only if open.
...
(do_auto_save_unwind): Corresponding changes.
1994-05-17 09:46:59 +00:00
Richard M. Stallman
5acac34e2a
(Fcopy_file): Close output before setting its times.
...
Close both before discarding the unwind protects.
1994-05-14 06:34:26 +00:00
Richard M. Stallman
e54d3b5db2
(Finsert_file_contents) [MSDOS]: Ignore the replace feature.
...
(Fdo_auto_save): Write a list of all auto save file names.
(Vauto_save_list_file_name): Specify file name to put them in.
(syms_of_fileio): Set up Lisp var.
1994-05-10 23:26:39 +00:00
Richard M. Stallman
e3e86241c2
(inhibit-file-name-handers): Correct documentation.
1994-04-28 22:27:06 +00:00
Richard M. Stallman
bf162ea86c
(Finsert_file_contents): Fix accessing buffer_file_type
...
since it is t or nil. Change to handle t or nil as value
of find-buffer-file-type.
1994-04-27 08:35:48 +00:00
Richard M. Stallman
a65970a0f8
(syms_of_fileio): New Lisp var inhibit-file-name-operation.
...
(Ffind_file_name_handler): Obey that variable. Use new meaning
for inhibit-file-name-handlers.
1994-04-23 04:55:38 +00:00
Karl Heuer
49307295be
(Ffind_file_name_handler): New argument OPERATION. All callers changed.
1994-04-22 23:56:44 +00:00
Richard M. Stallman
e846c982e6
(Finsert_file_contents): Fix test for unchanged file.
1994-04-15 22:26:34 +00:00
Richard M. Stallman
29beb080a9
[HAVE_UNISTD_H]: Include unistd.h.
1994-04-13 22:23:24 +00:00
Richard M. Stallman
82c2d8392e
(Fdo_auto_save): Don't turn off auto save mode.
...
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.
1994-04-05 03:50:46 +00:00
Karl Heuer
e762e30a1e
(Finsert_file_contents): Use assignment, not initialization.
1994-03-23 22:28:22 +00:00
Karl Heuer
3ace87e34c
(Ffile_modes) [MSDOS]: set exec-bit based on file suffix.
1994-03-16 22:14:23 +00:00
Karl Heuer
36712b0a1b
(Frename_file, Fcopy_file, Fadd_name_to_file, Fmake_symbolic_link): Fix typo
...
in previous change.
1994-03-16 03:01:46 +00:00
Richard M. Stallman
dc227f7285
(Frename_file): Use RETURN_UNGCPRO when run handler.
...
(Fcopy_file, Fadd_name_to_file, Fmake_symbolic_link): Likewise.
1994-03-15 18:50:50 +00:00
Karl Heuer
0de25302b8
(Fread_file_name): Delete docstring of second version of function, to avoid
...
confusing make-docfile.
1994-03-14 22:00:34 +00:00
Richard M. Stallman
9c28748f65
(Finsert_file_contents): Don't let same_at_end be less than same_at_start.
1994-03-14 01:29:37 +00:00
Richard M. Stallman
012d4cdc7f
(Fdo_auto_save): Doc fix.
1994-03-05 20:36:38 +00:00
Richard M. Stallman
251f623e8e
(Finsert_file_contents): Pass del_range_1 two ends, not a length.
1994-03-04 04:19:14 +00:00
Karl Heuer
351bd676ba
(Fread_file_name): Do the right thing when insert-default-directory is nil.
...
Allow for doubled dollar signs in dir when computing pos.
1994-03-03 21:01:37 +00:00
Richard M. Stallman
cfadd37670
(Finsert_file_contents): If undo_list was t, leave it t.
...
(Finsert_file_contents): Use del_range_1.
1994-03-03 19:24:54 +00:00
Richard M. Stallman
a1d2b64a33
(Finsert_file_contents): If REPLACE, always do lseek.
...
Exit main loop if INSERTED reaches TOTAL.
1994-02-23 00:33:13 +00:00
Richard M. Stallman
cb8b39c7fb
(Finsert_file_contents): Fix previous change.
1994-02-17 19:23:59 +00:00
Richard M. Stallman
3d0387c0f3
(Finsert_file_contents): New arg REPLACE.
...
New feature to replace buffer contents with file contents.
1994-02-17 08:38:34 +00:00
Karl Heuer
a6451a9fa7
(Fsubstitute_in_file_name): Remove long-dead code that looked at USER before
...
LOGNAME.
1994-02-11 21:51:51 +00:00
Richard M. Stallman
3d9f5ce2fa
Use new name vmsdir.h.
1994-02-10 04:38:58 +00:00
Karl Heuer
f05b275b4a
(Fdo_auto_save): Save echo_area_glyphs_length.
1994-02-10 00:39:28 +00:00
Richard M. Stallman
b56ad927c4
(Fwrite_region): If FILENAME has no handler, see if VISIT has one.
1994-02-03 05:56:36 +00:00
Richard M. Stallman
6e710ae591
(double_dollars): New function.
...
(Fread_file_name_internal): Use double_dollars.
(Fread_file_name): Likewise.
1994-01-20 23:50:37 +00:00
Richard M. Stallman
89de89c7d1
(Ffile_symlink_p): Doc fix.
1994-01-16 23:59:56 +00:00
Richard M. Stallman
b60247d9ee
(Fdo_auto_save): If auto save times out, don't try again for 20 minutes.
...
(Fclear_buffer_auto_save_failure): New function.
(Fset_buffer_auto_saved): Clear auto_save_failure_time.
1994-01-10 22:24:26 +00:00
Roland McGrath
a1f17b2d6a
(report_file_error): Use strerror instead of sys_errlist.
1994-01-08 22:55:04 +00:00
Roland McGrath
ce97267f95
Don't declare sys_errlist; declare strerror instead.
...
(err_str): Macro removed.
(Finsert_file_contents, Fwrite_region): Call strerror instead of err_str.
1994-01-08 21:28:08 +00:00
Richard M. Stallman
4c3c22f36a
[MSDOS]: #include "msdos.h" and <sys/param.h> needed for
...
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.
1994-01-08 09:15:49 +00:00
Richard M. Stallman
561cb8e159
(Fwrite_region): Don't change START and END from nil
...
until after checking for a magic handler.
1994-01-01 18:01:49 +00:00
Richard M. Stallman
a7e8247287
(Finsert_file_contents): Avoid setting buffer-file-name field if ran a handler.
...
Get rid of local var `handled'.
1993-12-31 18:16:16 +00:00
Richard M. Stallman
62bcf0098d
(Finsert_file_contents): Don't run after change hook
...
if inserted is 0. New local `handled', set if run handler.
Avoid setting modtime field if ran a handler.
1993-12-31 12:56:41 +00:00
Richard M. Stallman
c9d14ebc74
(Fwrite_region): If handler, don't mess with modtime.
...
(Finsert_file_contents): Likewise.
1993-12-25 02:17:41 +00:00