diff options
| author | Melissa Weisshaus | 1995-06-14 20:07:48 +0000 |
|---|---|---|
| committer | Melissa Weisshaus | 1995-06-14 20:07:48 +0000 |
| commit | 63ff95ee93f33036f705e454f04c362696d00e32 (patch) | |
| tree | 8122760685b00cd229a531efde47b440cd33b7bb | |
| parent | 1e5f16fae6bff16fd65a15c3b7d84d434825f988 (diff) | |
| download | emacs-63ff95ee93f33036f705e454f04c362696d00e32.tar.gz emacs-63ff95ee93f33036f705e454f04c362696d00e32.zip | |
changes for 19.29.
| -rw-r--r-- | lispref/files.texi | 63 | ||||
| -rw-r--r-- | lispref/minibuf.texi | 6 |
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 | |||
| 365 | prevents problems such as a lack of disk space from resulting in an | 365 | prevents problems such as a lack of disk space from resulting in an |
| 366 | invalid file. | 366 | invalid file. |
| 367 | 367 | ||
| 368 | As a side effect, backups must be made by copying. | 368 | As a side effect, backups are necessarily made by copying. @xref{Rename |
| 369 | @xref{Rename or Copy}. | 369 | or Copy}. Yet, at the same time, saving a precious file always breaks |
| 370 | all hard links between the file you save and other file names. | ||
| 370 | 371 | ||
| 371 | Some modes set this variable non-@code{nil} locally in particular | 372 | Some modes set this variable non-@code{nil} locally in particular |
| 372 | buffers. | 373 | buffers. |
| @@ -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 |
| 398 | This function inserts the contents of file @var{filename} into the | 399 | This function inserts the contents of file @var{filename} into the |
| 399 | current buffer after point. It returns a list of the absolute file name | 400 | current buffer after point. It returns a list of the absolute file name |
| 400 | and the length of the data inserted. An error is signaled if | 401 | and 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 | |||
| 2087 | names. | 2090 | names. |
| 2088 | @end defun | 2091 | @end defun |
| 2089 | 2092 | ||
| 2093 | @defun format-find-file file format | ||
| 2094 | This command finds the file @var{file}, converting it according to | ||
| 2095 | format @var{format}. It also makes @var{format} the default if the | ||
| 2096 | buffer is saved later. | ||
| 2097 | |||
| 2098 | The 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 | ||
| 2104 | This command inserts the contents of file @var{file}, converting it | ||
| 2105 | according to format @var{format}. If @var{beg} and @var{end} are | ||
| 2106 | non-@code{nil}, they specify which part of the file to read, as in | ||
| 2107 | @code{insert-file-contents} (@pxref{Reading from Files}). | ||
| 2108 | |||
| 2109 | The return value is like what @code{insert-file-contents} returns: a | ||
| 2110 | list of the absolute file name and the length of the data inserted | ||
| 2111 | (after conversion). | ||
| 2112 | |||
| 2113 | The 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 | ||
| 2119 | This command finds the file @var{file}, converting it according to | ||
| 2120 | format @var{format}. It also makes @var{format} the default if the | ||
| 2121 | buffer is saved later. | ||
| 2122 | |||
| 2123 | The 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 | ||
| 2129 | This command inserts the contents of file @var{file}, converting it | ||
| 2130 | according to format @var{format}. If @var{beg} and @var{end} are | ||
| 2131 | non-@code{nil}, they specify which part of the file to read, | ||
| 2132 | as in @code{insert-file-contents} (@pxref{Reading from Files}). | ||
| 2133 | |||
| 2134 | The return value is like what @code{insert-file-contents} returns: a | ||
| 2135 | list of the absolute file name and the length of the data inserted | ||
| 2136 | (after conversion). | ||
| 2137 | |||
| 2138 | The 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 |
| 2091 | This variable specifies the format to use for auto-saving. Its value is | 2144 | This variable specifies the format to use for auto-saving. Its value is |
| 2092 | a list of format names, just like the value of | 2145 | a 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 | ||
| 1254 | If not a string, @var{prompter} should be a function of one argument | 1254 | If 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 |
| 1256 | the value is a string, that is the question to ask the user. The | ||
| 1257 | function can also return @code{t} meaning do act on this object (and | ||
| 1258 | don't ask the user), or @code{nil} meaning ignore this object (and don't | ||
| 1259 | ask the user). | ||
| 1256 | 1260 | ||
| 1257 | The argument @var{actor} says how to act on the answers that the user | 1261 | The argument @var{actor} says how to act on the answers that the user |
| 1258 | gives. It should be a function of one argument, and it is called with | 1262 | gives. It should be a function of one argument, and it is called with |