aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMelissa Weisshaus1995-06-14 20:07:48 +0000
committerMelissa Weisshaus1995-06-14 20:07:48 +0000
commit63ff95ee93f33036f705e454f04c362696d00e32 (patch)
tree8122760685b00cd229a531efde47b440cd33b7bb
parent1e5f16fae6bff16fd65a15c3b7d84d434825f988 (diff)
downloademacs-63ff95ee93f33036f705e454f04c362696d00e32.tar.gz
emacs-63ff95ee93f33036f705e454f04c362696d00e32.zip
changes for 19.29.
-rw-r--r--lispref/files.texi63
-rw-r--r--lispref/minibuf.texi6
2 files changed, 63 insertions, 6 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index 1fa70df853d..511ba56e8c4 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -365,8 +365,9 @@ the intended name after it is clear there are no errors. This procedure
365prevents problems such as a lack of disk space from resulting in an 365prevents problems such as a lack of disk space from resulting in an
366invalid file. 366invalid file.
367 367
368As a side effect, backups must be made by copying. 368As a side effect, backups are necessarily made by copying. @xref{Rename
369@xref{Rename or Copy}. 369or Copy}. Yet, at the same time, saving a precious file always breaks
370all hard links between the file you save and other file names.
370 371
371Some modes set this variable non-@code{nil} locally in particular 372Some modes set this variable non-@code{nil} locally in particular
372buffers. 373buffers.
@@ -396,7 +397,7 @@ command @code{insert-file} in a Lisp program, as that sets the mark.
396 397
397@defun insert-file-contents filename &optional visit beg end replace 398@defun insert-file-contents filename &optional visit beg end replace
398This function inserts the contents of file @var{filename} into the 399This function inserts the contents of file @var{filename} into the
399current buffer after point. It returns a list of the absolute file name 400current buffer after point. It returns a list of the absolute file name
400and the length of the data inserted. An error is signaled if 401and the length of the data inserted. An error is signaled if
401@var{filename} is not the name of a file that can be read. 402@var{filename} is not the name of a file that can be read.
402 403
@@ -1877,8 +1878,9 @@ Here are the operations that a magic file name handler gets to handle:
1877@noindent 1878@noindent
1878@code{add-name-to-file}, @code{copy-file}, @code{delete-directory}, 1879@code{add-name-to-file}, @code{copy-file}, @code{delete-directory},
1879@code{delete-file},@* 1880@code{delete-file},@*
1881@code{diff-latest-backup-file},
1880@code{directory-file-name}, 1882@code{directory-file-name},
1881@code{diff-latest-backup-file}, @code{directory-files}, 1883@code{directory-files},
1882@code{dired-compress-file}, @code{dired-uncache}, 1884@code{dired-compress-file}, @code{dired-uncache},
1883@code{expand-file-name},@* 1885@code{expand-file-name},@*
1884@code{file-accessible-directory-p}, 1886@code{file-accessible-directory-p},
@@ -1889,7 +1891,8 @@ Here are the operations that a magic file name handler gets to handle:
1889@code{file-name-directory}, @code{file-name-nondirectory}, 1891@code{file-name-directory}, @code{file-name-nondirectory},
1890@code{file-name-sans-versions}, @code{file-newer-than-file-p}, 1892@code{file-name-sans-versions}, @code{file-newer-than-file-p},
1891@code{file-readable-p}, @code{file-regular-p}, @code{file-symlink-p}, 1893@code{file-readable-p}, @code{file-regular-p}, @code{file-symlink-p},
1892@code{file-truename}, @code{get-file-buffer}, @code{file-writable-p}, 1894@code{file-truename}, @code{file-writable-p},
1895@code{get-file-buffer},
1893@code{insert-directory}, 1896@code{insert-directory},
1894@code{insert-file-contents}, @code{load}, @code{make-directory}, 1897@code{insert-file-contents}, @code{load}, @code{make-directory},
1895@code{make-symbolic-link}, @code{rename-file}, @code{set-file-modes}, 1898@code{make-symbolic-link}, @code{rename-file}, @code{set-file-modes},
@@ -2087,6 +2090,56 @@ saves of the buffer. The argument @var{format} is a list of format
2087names. 2090names.
2088@end defun 2091@end defun
2089 2092
2093@defun format-find-file file format
2094This command finds the file @var{file}, converting it according to
2095format @var{format}. It also makes @var{format} the default if the
2096buffer is saved later.
2097
2098The argument @var{format} is a list of format names. If @var{format} is
2099@code{nil}, no conversion takes place. Interactively, typing just
2100@key{RET} for @var{format} specifies @code{nil}.
2101@end defun
2102
2103@defun format-insert-file file format %optional beg end
2104This command inserts the contents of file @var{file}, converting it
2105according to format @var{format}. If @var{beg} and @var{end} are
2106non-@code{nil}, they specify which part of the file to read, as in
2107@code{insert-file-contents} (@pxref{Reading from Files}).
2108
2109The return value is like what @code{insert-file-contents} returns: a
2110list of the absolute file name and the length of the data inserted
2111(after conversion).
2112
2113The argument @var{format} is a list of format names. If @var{format} is
2114@code{nil}, no conversion takes place. Interactively, typing just
2115@key{RET} for @var{format} specifies @code{nil}.
2116@end defun
2117
2118@defun format-find-file file format
2119This command finds the file @var{file}, converting it according to
2120format @var{format}. It also makes @var{format} the default if the
2121buffer is saved later.
2122
2123The argument @var{format} is a list of format names. If @var{format} is
2124@code{nil}, no conversion takes place. Interactively, typing just
2125@key{RET} for @var{format} specifies @code{nil}.
2126@end defun
2127
2128@defun format-insert-file file format %optional beg end
2129This command inserts the contents of file @var{file}, converting it
2130according to format @var{format}. If @var{beg} and @var{end} are
2131non-@code{nil}, they specify which part of the file to read,
2132as in @code{insert-file-contents} (@pxref{Reading from Files}).
2133
2134The return value is like what @code{insert-file-contents} returns: a
2135list of the absolute file name and the length of the data inserted
2136(after conversion).
2137
2138The argument @var{format} is a list of format names. If @var{format} is
2139@code{nil}, no conversion takes place. Interactively, typing just
2140@key{RET} for @var{format} specifies @code{nil}.
2141@end defun
2142
2090@defvar auto-save-file-format 2143@defvar auto-save-file-format
2091This variable specifies the format to use for auto-saving. Its value is 2144This variable specifies the format to use for auto-saving. Its value is
2092a list of format names, just like the value of 2145a list of format names, just like the value of
diff --git a/lispref/minibuf.texi b/lispref/minibuf.texi
index 17efa0e8dc8..44db6db55c2 100644
--- a/lispref/minibuf.texi
+++ b/lispref/minibuf.texi
@@ -1252,7 +1252,11 @@ where @var{object} is the next object to ask about (as obtained from
1252@var{list}). 1252@var{list}).
1253 1253
1254If not a string, @var{prompter} should be a function of one argument 1254If not a string, @var{prompter} should be a function of one argument
1255(the next object to ask about) and should return the question text. 1255(the next object to ask about) and should return the question text. If
1256the value is a string, that is the question to ask the user. The
1257function can also return @code{t} meaning do act on this object (and
1258don't ask the user), or @code{nil} meaning ignore this object (and don't
1259ask the user).
1256 1260
1257The argument @var{actor} says how to act on the answers that the user 1261The argument @var{actor} says how to act on the answers that the user
1258gives. It should be a function of one argument, and it is called with 1262gives. It should be a function of one argument, and it is called with