329 |
@end itemize |
@end itemize |
330 |
@end deffn |
@end deffn |
331 |
|
|
|
@anchor{Definition of save-some-buffers} |
|
332 |
@deffn Command save-some-buffers &optional save-silently-p pred |
@deffn Command save-some-buffers &optional save-silently-p pred |
333 |
|
@anchor{Definition of save-some-buffers} |
334 |
This command saves some modified file-visiting buffers. Normally it |
This command saves some modified file-visiting buffers. Normally it |
335 |
asks the user about each buffer. But if @var{save-silently-p} is |
asks the user about each buffer. But if @var{save-silently-p} is |
336 |
non-@code{nil}, it saves all the file-visiting buffers without querying |
non-@code{nil}, it saves all the file-visiting buffers without querying |
352 |
value in a certain buffer, that means do offer to save that buffer. |
value in a certain buffer, that means do offer to save that buffer. |
353 |
@end deffn |
@end deffn |
354 |
|
|
|
@anchor{Definition of write-file} |
|
355 |
@deffn Command write-file filename &optional confirm |
@deffn Command write-file filename &optional confirm |
356 |
|
@anchor{Definition of write-file} |
357 |
This function writes the current buffer into file @var{filename}, makes |
This function writes the current buffer into file @var{filename}, makes |
358 |
the buffer visit that file, and marks it not modified. Then it renames |
the buffer visit that file, and marks it not modified. Then it renames |
359 |
the buffer based on @var{filename}, appending a string like @samp{<2>} |
the buffer based on @var{filename}, appending a string like @samp{<2>} |
626 |
files that the user does not need to know about. |
files that the user does not need to know about. |
627 |
@end deffn |
@end deffn |
628 |
|
|
|
@anchor{Definition of with-temp-file} |
|
629 |
@defmac with-temp-file file body... |
@defmac with-temp-file file body... |
630 |
|
@anchor{Definition of with-temp-file} |
631 |
The @code{with-temp-file} macro evaluates the @var{body} forms with a |
The @code{with-temp-file} macro evaluates the @var{body} forms with a |
632 |
temporary buffer as the current buffer; then, at the end, it writes the |
temporary buffer as the current buffer; then, at the end, it writes the |
633 |
buffer contents into file @var{file}. It kills the temporary buffer |
buffer contents into file @var{file}. It kills the temporary buffer |
1125 |
@end example |
@end example |
1126 |
@end defun |
@end defun |
1127 |
|
|
|
@anchor{Definition of file-attributes} |
|
1128 |
@defun file-attributes filename &optional id-format |
@defun file-attributes filename &optional id-format |
1129 |
|
@anchor{Definition of file-attributes} |
1130 |
This function returns a list of attributes of file @var{filename}. If |
This function returns a list of attributes of file @var{filename}. If |
1131 |
the specified file cannot be opened, it returns @code{nil}. |
the specified file cannot be opened, it returns @code{nil}. |
1132 |
The optional parameter @var{id-format} specifies the preferred format |
The optional parameter @var{id-format} specifies the preferred format |
1824 |
To convert a directory name to its abbreviation, use this |
To convert a directory name to its abbreviation, use this |
1825 |
function: |
function: |
1826 |
|
|
|
@anchor{Definition of abbreviate-file-name} |
|
1827 |
@defun abbreviate-file-name filename |
@defun abbreviate-file-name filename |
1828 |
|
@anchor{Definition of abbreviate-file-name} |
1829 |
This function applies abbreviations from @code{directory-abbrev-alist} |
This function applies abbreviations from @code{directory-abbrev-alist} |
1830 |
to its argument, and substitutes @samp{~} for the user's home |
to its argument, and substitutes @samp{~} for the user's home |
1831 |
directory. You can use it for directory names and for file names, |
directory. You can use it for directory names and for file names, |
1952 |
@end example |
@end example |
1953 |
@end defvar |
@end defvar |
1954 |
|
|
|
@anchor{Definition of substitute-in-file-name} |
|
1955 |
@defun substitute-in-file-name filename |
@defun substitute-in-file-name filename |
1956 |
|
@anchor{Definition of substitute-in-file-name} |
1957 |
This function replaces environment variable references in |
This function replaces environment variable references in |
1958 |
@var{filename} with the environment variable values. Following |
@var{filename} with the environment variable values. Following |
1959 |
standard Unix shell syntax, @samp{$} is the prefix to substitute an |
standard Unix shell syntax, @samp{$} is the prefix to substitute an |