Changeset 4131 for trunk/lisp/files.el
- Timestamp:
- 07/29/06 07:48:34 (2 years ago)
- Files:
-
- trunk/lisp/files.el (modified) (34 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/files.el
r4111 r4131 45 45 46 46 (defcustom delete-auto-save-files t 47 " *Non-nil means delete auto-save file when a buffer is saved or killed.47 "Non-nil means delete auto-save file when a buffer is saved or killed. 48 48 49 49 Note that the auto-save file will not be deleted if the buffer is killed … … 54 54 (defcustom directory-abbrev-alist 55 55 nil 56 " *Alist of abbreviations for file directories.56 "Alist of abbreviations for file directories. 57 57 A list of elements of the form (FROM . TO), each meaning to replace 58 58 FROM with TO when it appears in a directory name. This replacement is … … 75 75 ;; Turn off backup files on VMS since it has version numbers. 76 76 (defcustom make-backup-files (not (eq system-type 'vax-vms)) 77 " *Non-nil means make a backup of a file the first time it is saved.77 "Non-nil means make a backup of a file the first time it is saved. 78 78 This can be done by renaming the file or by copying. 79 79 … … 104 104 105 105 (defcustom backup-by-copying nil 106 " *Non-nil means always use copying to create backup files.106 "Non-nil means always use copying to create backup files. 107 107 See documentation of variable `make-backup-files'." 108 108 :type 'boolean … … 110 110 111 111 (defcustom backup-by-copying-when-linked nil 112 " *Non-nil means use copying to create backups for files with multiple names.112 "Non-nil means use copying to create backups for files with multiple names. 113 113 This causes the alternate names to refer to the latest version as edited. 114 114 This variable is relevant only if `backup-by-copying' is nil." … … 117 117 118 118 (defcustom backup-by-copying-when-mismatch nil 119 " *Non-nil means create backups by copying if this preserves owner or group.119 "Non-nil means create backups by copying if this preserves owner or group. 120 120 Renaming may still be used (subject to control of other variables) 121 121 when it would not result in changing the owner or group of the file; … … 127 127 128 128 (defcustom backup-by-copying-when-privileged-mismatch 200 129 " *Non-nil means create backups by copying to preserve a privileged owner.129 "Non-nil means create backups by copying to preserve a privileged owner. 130 130 Renaming may still be used (subject to control of other variables) 131 131 when it would not result in changing the owner of the file or if the owner … … 143 143 144 144 (defcustom buffer-offer-save nil 145 " *Non-nil in a buffer means always offer to save buffer on exit.145 "Non-nil in a buffer means always offer to save buffer on exit. 146 146 Do so even if the buffer is not visiting a file. 147 147 Automatically local in all buffers." … … 151 151 152 152 (defcustom find-file-existing-other-name t 153 " *Non-nil means find a file under alternative names, in existing buffers.153 "Non-nil means find a file under alternative names, in existing buffers. 154 154 This means if any existing buffer is visiting the file you want 155 155 under another name, you get the existing buffer instead of a new buffer." … … 166 166 167 167 (defcustom revert-without-query nil 168 " *Specify which files should be reverted without query.168 "Specify which files should be reverted without query. 169 169 The value is a list of regular expressions. 170 170 If the file name matches one of these regular expressions, … … 227 227 228 228 (defcustom file-precious-flag nil 229 " *Non-nil means protect against I/O errors while saving files.229 "Non-nil means protect against I/O errors while saving files. 230 230 Some modes set this non-nil in particular buffers. 231 231 … … 242 242 243 243 (defcustom version-control nil 244 " *Control use of version numbers for backup files.244 "Control use of version numbers for backup files. 245 245 t means make numeric backup versions unconditionally. 246 246 nil means make them for files that have some already. … … 255 255 256 256 (defcustom dired-kept-versions 2 257 " *When cleaning directory, number of versions to keep."257 "When cleaning directory, number of versions to keep." 258 258 :type 'integer 259 259 :group 'backup … … 261 261 262 262 (defcustom delete-old-versions nil 263 " *If t, delete excess backup versions silently.263 "If t, delete excess backup versions silently. 264 264 If nil, ask confirmation. Any other value prevents any trimming." 265 265 :type '(choice (const :tag "Delete" t) … … 269 269 270 270 (defcustom kept-old-versions 2 271 " *Number of oldest versions to keep when a new numbered backup is made."271 "Number of oldest versions to keep when a new numbered backup is made." 272 272 :type 'integer 273 273 :group 'backup) … … 275 275 276 276 (defcustom kept-new-versions 2 277 " *Number of newest versions to keep when a new numbered backup is made.277 "Number of newest versions to keep when a new numbered backup is made. 278 278 Includes the new backup. Must be > 0" 279 279 :type 'integer … … 282 282 283 283 (defcustom require-final-newline nil 284 " *Whether to add a newline automatically at the end of the file.284 "Whether to add a newline automatically at the end of the file. 285 285 286 286 A value of t means do this only when the file is about to be saved. … … 300 300 301 301 (defcustom mode-require-final-newline t 302 " *Whether to add a newline at end of file, in certain major modes.302 "Whether to add a newline at end of file, in certain major modes. 303 303 Those modes set `require-final-newline' to this value when you enable them. 304 304 They do so because they are often used for files that are supposed … … 323 323 324 324 (defcustom auto-save-default t 325 " *Non-nil says by default do auto-saving of every file-visiting buffer."325 "Non-nil says by default do auto-saving of every file-visiting buffer." 326 326 :type 'boolean 327 327 :group 'auto-save) 328 328 329 329 (defcustom auto-save-visited-file-name nil 330 " *Non-nil says auto-save a buffer in the file it is visiting, when practical.330 "Non-nil says auto-save a buffer in the file it is visiting, when practical. 331 331 Normally auto-save files are written under other names." 332 332 :type 'boolean … … 338 338 ;; transformed to "/2" on DOS/Windows. 339 339 ,(concat temporary-file-directory "\\2") t)) 340 " *Transforms to apply to buffer file name before making auto-save file name.340 "Transforms to apply to buffer file name before making auto-save file name. 341 341 Each transform is a list (REGEXP REPLACEMENT UNIQUIFY): 342 342 REGEXP is a regular expression to match against the file name. … … 365 365 366 366 (defcustom save-abbrevs t 367 " *Non-nil means save word abbrevs too when files are saved.367 "Non-nil means save word abbrevs too when files are saved. 368 368 If `silently', don't ask the user before saving." 369 369 :type '(choice (const t) (const nil) (const silently)) … … 371 371 372 372 (defcustom find-file-run-dired t 373 " *Non-nil means allow `find-file' to visit directories.373 "Non-nil means allow `find-file' to visit directories. 374 374 To visit the directory, `find-file' runs `find-directory-functions'." 375 375 :type 'boolean … … 377 377 378 378 (defcustom find-directory-functions '(cvs-dired-noselect dired-noselect) 379 " *List of functions to try in sequence to visit a directory.379 "List of functions to try in sequence to visit a directory. 380 380 Each function is called with the directory name as the sole argument 381 381 and should return either a buffer or nil." … … 449 449 450 450 (defcustom enable-local-variables t 451 " *Control use of local variables in files you visit.451 "Control use of local variables in files you visit. 452 452 The value can be t, nil, :safe, or something else. 453 453 … … 507 507 508 508 (defcustom view-read-only nil 509 " *Non-nil means buffers visiting files read-only do so in view mode.509 "Non-nil means buffers visiting files read-only do so in view mode. 510 510 In fact, this means that all read-only buffers normally have 511 511 View mode enabled, including buffers that are read-only because … … 1325 1325 1326 1326 (defcustom find-file-not-true-dirname-list nil 1327 " *List of logical names for which visiting shouldn't save the true dirname.1327 "List of logical names for which visiting shouldn't save the true dirname. 1328 1328 On VMS, when you visit a file using a logical name that searches a path, 1329 1329 you may or may not want the visited file name to record the specific … … 1374 1374 1375 1375 (defcustom find-file-wildcards t 1376 " *Non-nil means file-visiting commands should handle wildcards.1376 "Non-nil means file-visiting commands should handle wildcards. 1377 1377 For example, if you specify `*.c', that would visit all the files 1378 1378 whose names match the pattern." … … 1382 1382 1383 1383 (defcustom find-file-suppress-same-file-warnings nil 1384 " *Non-nil means suppress warning messages for symlinked files.1384 "Non-nil means suppress warning messages for symlinked files. 1385 1385 When nil, Emacs prints a warning when visiting a file that is already 1386 1386 visited, but with a different name. Setting this option to t … … 2304 2304 2305 2305 (defcustom safe-local-eval-forms nil 2306 " *Expressions that are considered safe in an `eval:' local variable.2306 "Expressions that are considered safe in an `eval:' local variable. 2307 2307 Add expressions to this list if you want Emacs to evaluate them, when 2308 2308 they appear in an `eval' local variable specification, without first … … 2765 2765 2766 2766 (defcustom change-major-mode-with-file-name t 2767 " *Non-nil means \\[write-file] should set the major mode from the file name.2767 "Non-nil means \\[write-file] should set the major mode from the file name. 2768 2768 However, the mode will not be changed if 2769 2769 \(1) a local variables list or the `-*-' line specifies a major mode, or … … 4500 4500 (defcustom list-directory-brief-switches 4501 4501 (if (eq system-type 'vax-vms) "" "-CF") 4502 " *Switches for `list-directory' to pass to `ls' for brief listing."4502 "Switches for `list-directory' to pass to `ls' for brief listing." 4503 4503 :type 'string 4504 4504 :group 'dired) … … 4508 4508 "/PROTECTION/SIZE/DATE/OWNER/WIDTH=(OWNER:10)" 4509 4509 "-l") 4510 " *Switches for `list-directory' to pass to `ls' for verbose listing."4510 "Switches for `list-directory' to pass to `ls' for verbose listing." 4511 4511 :type 'string 4512 4512 :group 'dired) … … 4639 4639 4640 4640 (defcustom directory-free-space-program "df" 4641 " *Program to get the amount of free space on a file system.4641 "Program to get the amount of free space on a file system. 4642 4642 We assume the output has the format of `df'. 4643 4643 The value of this variable must be just a command name or file name; … … 4653 4653 (defcustom directory-free-space-args 4654 4654 (if (eq system-type 'darwin) "-k" "-Pk") 4655 " *Options to use when running `directory-free-space-program'."4655 "Options to use when running `directory-free-space-program'." 4656 4656 :type 'string 4657 4657 :group 'dired)
