/[emacs]/emacs/lispref/files.texi
ViewVC logotype

Diff of /emacs/lispref/files.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.73 by rms, Thu Feb 3 07:01:04 2005 UTC revision 1.74 by rms, Sun Mar 6 18:14:33 2005 UTC
# Line 578  that string, rather than text from the b Line 578  that string, rather than text from the b
578  this case.  this case.
579    
580  If @var{append} is non-@code{nil}, then the specified text is appended  If @var{append} is non-@code{nil}, then the specified text is appended
581  to the existing file contents (if any).  Starting in Emacs 21, if  to 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  integer, @code{write-region} seeks to that byte offset from the start
583  offset from the start of the file and writes the data from there.  of the file and writes the data from there.
584    
585  If @var{mustbenew} is non-@code{nil}, then @code{write-region} asks  If @var{mustbenew} is non-@code{nil}, then @code{write-region} asks
586  for confirmation if @var{filename} names an existing file.  for confirmation if @var{filename} names an existing file.  If
587  Starting in Emacs 21, if @var{mustbenew} is the symbol @code{excl},  @var{mustbenew} is the symbol @code{excl}, then @code{write-region}
588  then @code{write-region} does not ask for confirmation, but instead  does not ask for confirmation, but instead it signals an error
589  it signals an error @code{file-already-exists} if the file already  @code{file-already-exists} if the file already exists.
 exists.  
590    
591  The test for an existing file, when @var{mustbenew} is @code{excl}, uses  The test for an existing file, when @var{mustbenew} is @code{excl}, uses
592  a special system feature.  At least for files on a local disk, there is  a special system feature.  At least for files on a local disk, there is
# Line 2013  on VMS except discard superfluous initia Line 2012  on VMS except discard superfluous initia
2012  @subsection Generating Unique File Names  @subsection Generating Unique File Names
2013    
2014    Some programs need to write temporary files.  Here is the usual way to    Some programs need to write temporary files.  Here is the usual way to
2015  construct a name for such a file, starting in Emacs 21:  construct a name for such a file:
2016    
2017  @example  @example
2018  (make-temp-file @var{name-of-application})  (make-temp-file @var{name-of-application})
# Line 2106  non-@code{nil}. Line 2105  non-@code{nil}.
2105    
2106  @tindex small-temporary-file-directory  @tindex small-temporary-file-directory
2107  @defvar small-temporary-file-directory  @defvar small-temporary-file-directory
2108  This variable (new in Emacs 21) specifies the directory name for  This variable specifies the directory name for
2109  creating certain temporary files, which are likely to be small.  creating certain temporary files, which are likely to be small.
2110    
2111  If you want to write a temporary file which is likely to be small, you  If you want to write a temporary file which is likely to be small, you

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26