aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-03-06 18:14:33 +0000
committerRichard M. Stallman2005-03-06 18:14:33 +0000
commitc3dd4d76c469413615bb505c6618fd015ec1c1fd (patch)
tree9ac4f53ab2514eb5df9b42057315c3c6383c9907
parent7794eb8756ab14e34ff05c9e79b66f7210a25140 (diff)
downloademacs-c3dd4d76c469413615bb505c6618fd015ec1c1fd.tar.gz
emacs-c3dd4d76c469413615bb505c6618fd015ec1c1fd.zip
(Writing to Files): Get rid of "Emacs 21".
(Unique File Names): Likewise.
-rw-r--r--lispref/files.texi19
1 files changed, 9 insertions, 10 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index aa97ff83d30..18a98a406c4 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -578,16 +578,15 @@ that string, rather than text from the buffer. @var{end} is ignored in
578this case. 578this case.
579 579
580If @var{append} is non-@code{nil}, then the specified text is appended 580If @var{append} is non-@code{nil}, then the specified text is appended
581to the existing file contents (if any). Starting in Emacs 21, if 581to the existing file contents (if any). If @var{append} is an
582@var{append} is an integer, then @code{write-region} seeks to that byte 582integer, @code{write-region} seeks to that byte offset from the start
583offset from the start of the file and writes the data from there. 583of the file and writes the data from there.
584 584
585If @var{mustbenew} is non-@code{nil}, then @code{write-region} asks 585If @var{mustbenew} is non-@code{nil}, then @code{write-region} asks
586for confirmation if @var{filename} names an existing file. 586for confirmation if @var{filename} names an existing file. If
587Starting in Emacs 21, if @var{mustbenew} is the symbol @code{excl}, 587@var{mustbenew} is the symbol @code{excl}, then @code{write-region}
588then @code{write-region} does not ask for confirmation, but instead 588does not ask for confirmation, but instead it signals an error
589it signals an error @code{file-already-exists} if the file already 589@code{file-already-exists} if the file already exists.
590exists.
591 590
592The test for an existing file, when @var{mustbenew} is @code{excl}, uses 591The test for an existing file, when @var{mustbenew} is @code{excl}, uses
593a special system feature. At least for files on a local disk, there is 592a special system feature. At least for files on a local disk, there is
@@ -2013,7 +2012,7 @@ on VMS except discard superfluous initial components as shown above.
2013@subsection Generating Unique File Names 2012@subsection Generating Unique File Names
2014 2013
2015 Some programs need to write temporary files. Here is the usual way to 2014 Some programs need to write temporary files. Here is the usual way to
2016construct a name for such a file, starting in Emacs 21: 2015construct a name for such a file:
2017 2016
2018@example 2017@example
2019(make-temp-file @var{name-of-application}) 2018(make-temp-file @var{name-of-application})
@@ -2106,7 +2105,7 @@ non-@code{nil}.
2106 2105
2107@tindex small-temporary-file-directory 2106@tindex small-temporary-file-directory
2108@defvar small-temporary-file-directory 2107@defvar small-temporary-file-directory
2109This variable (new in Emacs 21) specifies the directory name for 2108This variable specifies the directory name for
2110creating certain temporary files, which are likely to be small. 2109creating certain temporary files, which are likely to be small.
2111 2110
2112If you want to write a temporary file which is likely to be small, you 2111If you want to write a temporary file which is likely to be small, you