Previous: File Groups, Up: Files [Contents][Index]
Common Lisp pathnames are used by the file primitives. For probing, checking write dates, and so forth, all of the Common Lisp file functions are available.
This inserts the file named by pathname at mark.
This function writes the contents of region to the file named by pathname. This writes region using a stream as if it were opened with :if-exists supplied as :rename-and-delete.
When keep-backup, which defaults to the value of Keep Backup Files, is non-nil, this opens the stream as if :if-exists were :rename. If append is non-nil, this writes the file as if it were opened with :if-exists supplied as :append.
This signals an error if both append and keep-backup are supplied as non-nil.
Access is an implementation dependent value that is suitable for setting pathname’s access or protection bits.
write-buffer-file writes buffer to the file named by pathname including the following:
Write File Hook is a list of functions that take the newly written buffer as an argument.
read-buffer-file deletes buffer’s region and uses read-file to read pathname into it, including the following:
Read File Hook is a list functions that take two arguments — the buffer read into and whether the file existed, t if so.
This returns a buffer assoicated with the pathname, reading the file into a new buffer if necessary. This returns a second value indicating whether a new buffer was created, t if so. If the file has already been read, this checks to see if the file has been modified on disk since it was read, giving the user various recovery options. This is the basis of the Find File command.
Previous: File Groups, Up: Files [Contents][Index]