/[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.54.2.2 by miles, Mon Jun 28 07:28:50 2004 UTC revision 1.54.2.3 by miles, Tue Jun 29 16:45:29 2004 UTC
# Line 329  With an argument of 0, unconditionally d Line 329  With an argument of 0, unconditionally d
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
# Line 352  whether to offer to save that buffer.  I Line 352  whether to offer to save that buffer.  I
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>}
# Line 417  Even though this is not a normal hook, y Line 417  Even though this is not a normal hook, y
417  @defvar write-contents-functions  @defvar write-contents-functions
418  This works just like @code{write-file-functions}, but it is intended for  This works just like @code{write-file-functions}, but it is intended for
419  hooks that pertain to the contents of the file, as opposed to hooks that  hooks that pertain to the contents of the file, as opposed to hooks that
420  pertain to where the file came from.  Such hooks are usually set up by  pertain to the file's name or location.  Such hooks are usually set up by
421  major modes, as buffer-local bindings for this variable.  If any of the  major modes, as buffer-local bindings for this variable.  If any of the
422  functions in this hook returns non-@code{nil}, @code{write-file-functions}  functions in this hook returns non-@code{nil}, the file is considered
423  is not run.  already written and the rest are not called and neither are the functions
424    in @code{write-file-functions}.
425    
426  This variable automatically becomes buffer-local whenever it is set;  This variable automatically becomes buffer-local whenever it is set;
427  switching to a new major mode always resets this variable, but  switching to a new major mode always resets this variable, but
# Line 625  feature is useful for programs that use Line 626  feature is useful for programs that use
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
# Line 1124  link to. Line 1125  link to.
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
# Line 1823  and so on. Line 1824  and so on.
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,
# Line 1951  default-directory Line 1952  default-directory
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

Legend:
Removed from v.1.54.2.2  
changed lines
  Added in v.1.54.2.3

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