backup-file-mode « "copy", ("none" on OpenVMS)
The value of this variable controls the way that Emacs creates backup files.
Value Description "none" Do not create backup files "copy" Create backup file by copying "rename" Create backup file by renaming Use backup by "copy" on Unix systems to leave the file protection and symbolic links unchanged.
Use backup by "rename" to speed up file saving.
Use backup "none" to prevent backup files being created.
backup-filename-format « "%pa%fn._%1ft"
This variable controls how emacs names backup files. Emacs bases the backup filename on the buffers file name as directed by the format string.
The syntax of the format string is the same as used by the command file-format-string. The equivilent MLisp would be:
(setq backup-filename (file-format-string backup-filename-format current-buffer-file-name))The default format create backup files in the same director as the original file but with a leading "_" prefixed to the file type. For example c:\docs\readme.txt is backed up as c:\docs\readme._txt.
Records the type of screen on which Emacs is running. If non-zero, text is displayed on the screen as black characters on a white background. If zero, text is displayed as white characters on a black background. This information is used by some terminal interfaces to decide how to display a visible bell.
Contains the name of the breakpoint function. When a breakpoint occurs, the function whose name is in breakpoint-hook is called.
The breakpoint function may decompile the expression that will be executed by using the decompile-current-line function.
buffer-backup-filename-hook « ""
Emacs calls the function in buffer-backup-filename-hook with the filename being backed up. The function is expected to return a string containing the filename to backup the file to.
(defun my-backup-filename-maker(~filename) ; backup to the filename with a "~" appended (concat ~filename "~") ) (setq buffer-backup-filename-hook "my-backup-filename-maker")
Emacs calls the function in buffer-choose-name-hook with the filename being loaded into a new buffer. The function is expected to return a string containing the name to use for the new buffer.
(defun my-buffer-name-maker(~filename) ; use a buffer name of file.typ in directory (file-format-string "%fa in %pa" ~filename) ) (setq buffer-choose-name-hook "my-buffer-name-maker")
Emacs calls the function in buffer-file-loaded-hook with the filename being loaded into a new buffer. The function is expected to return a string containing the name to use for the new buffer.
(defun my-file-loaded-hook(~buf-name) ; figure out the mode and settings to use for this buffer ;... ) (setq buffer-file-loaded-hook "my-file-read-hook")
Is positive if the current buffer has been modified since it was last written out to disk. You may set it to 0 if you want Emacs to ignore the modifications that have been made to a buffer. However, this does not restore the unmodified version of the buffer -- it merely tells Emacs not to write out the buffer with other modified files. Emacs sets buffer-is-modified positive any time the buffer is modified.
A 1-dimensional array which contains all the buffer names currently in use in Emacs. Element 0 of the array is a count of the total number of buffers contained in the array.
Emacs calls the function in buffer-saved-as-hook with the filename being loaded into a new buffer. The function is expected to return a string containing the name to use for the new buffer.
(defun my-saved-as-hook(~filename) ; change the buffer name to match the filename used in save as (setq buffer-name (file-format-string "%fa in %pa" ~filename)) ) (setq buffer-saved-as-hook "my-saved-as-hook")