Mercurial > emacs
comparison lisp/files.el @ 83533:02e39decdc84
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-351
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-352
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-353
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-354
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-355
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-356
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-357
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-358
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-359
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-360
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-361
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-362
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-363
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-364
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-365
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-366
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-367
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-368
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-369
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-370
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-115
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-116
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-117
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-118
Merge from emacs--devo--0
* emacs@sv.gnu.org/gnus--rel--5.10--patch-119
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-120
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-573
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sat, 29 Jul 2006 09:59:12 +0000 |
parents | b19aaf4ab0ee 873f1ea95cc4 |
children | 694bbb62a75d |
comparison
equal
deleted
inserted
replaced
83532:b19aaf4ab0ee | 83533:02e39decdc84 |
---|---|
42 "Finding files." | 42 "Finding files." |
43 :group 'files) | 43 :group 'files) |
44 | 44 |
45 | 45 |
46 (defcustom delete-auto-save-files t | 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 Note that the auto-save file will not be deleted if the buffer is killed | 49 Note that the auto-save file will not be deleted if the buffer is killed |
50 when it has unsaved changes." | 50 when it has unsaved changes." |
51 :type 'boolean | 51 :type 'boolean |
52 :group 'auto-save) | 52 :group 'auto-save) |
53 | 53 |
54 (defcustom directory-abbrev-alist | 54 (defcustom directory-abbrev-alist |
55 nil | 55 nil |
56 "*Alist of abbreviations for file directories. | 56 "Alist of abbreviations for file directories. |
57 A list of elements of the form (FROM . TO), each meaning to replace | 57 A list of elements of the form (FROM . TO), each meaning to replace |
58 FROM with TO when it appears in a directory name. This replacement is | 58 FROM with TO when it appears in a directory name. This replacement is |
59 done when setting up the default directory of a newly visited file. | 59 done when setting up the default directory of a newly visited file. |
60 *Every* FROM string should start with `^'. | 60 *Every* FROM string should start with `^'. |
61 | 61 |
72 :group 'abbrev | 72 :group 'abbrev |
73 :group 'find-file) | 73 :group 'find-file) |
74 | 74 |
75 ;; Turn off backup files on VMS since it has version numbers. | 75 ;; Turn off backup files on VMS since it has version numbers. |
76 (defcustom make-backup-files (not (eq system-type 'vax-vms)) | 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 This can be done by renaming the file or by copying. | 78 This can be done by renaming the file or by copying. |
79 | 79 |
80 Renaming means that Emacs renames the existing file so that it is a | 80 Renaming means that Emacs renames the existing file so that it is a |
81 backup file, then writes the buffer into a new file. Any other names | 81 backup file, then writes the buffer into a new file. Any other names |
82 that the old file had will now refer to the backup file. The new file | 82 that the old file had will now refer to the backup file. The new file |
101 This variable is intended for use by making it local to a buffer. | 101 This variable is intended for use by making it local to a buffer. |
102 But it is local only if you make it local.") | 102 But it is local only if you make it local.") |
103 (put 'backup-inhibited 'permanent-local t) | 103 (put 'backup-inhibited 'permanent-local t) |
104 | 104 |
105 (defcustom backup-by-copying nil | 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 See documentation of variable `make-backup-files'." | 107 See documentation of variable `make-backup-files'." |
108 :type 'boolean | 108 :type 'boolean |
109 :group 'backup) | 109 :group 'backup) |
110 | 110 |
111 (defcustom backup-by-copying-when-linked nil | 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 This causes the alternate names to refer to the latest version as edited. | 113 This causes the alternate names to refer to the latest version as edited. |
114 This variable is relevant only if `backup-by-copying' is nil." | 114 This variable is relevant only if `backup-by-copying' is nil." |
115 :type 'boolean | 115 :type 'boolean |
116 :group 'backup) | 116 :group 'backup) |
117 | 117 |
118 (defcustom backup-by-copying-when-mismatch nil | 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 Renaming may still be used (subject to control of other variables) | 120 Renaming may still be used (subject to control of other variables) |
121 when it would not result in changing the owner or group of the file; | 121 when it would not result in changing the owner or group of the file; |
122 that is, for files which are owned by you and whose group matches | 122 that is, for files which are owned by you and whose group matches |
123 the default for a new file created there by you. | 123 the default for a new file created there by you. |
124 This variable is relevant only if `backup-by-copying' is nil." | 124 This variable is relevant only if `backup-by-copying' is nil." |
125 :type 'boolean | 125 :type 'boolean |
126 :group 'backup) | 126 :group 'backup) |
127 | 127 |
128 (defcustom backup-by-copying-when-privileged-mismatch 200 | 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 Renaming may still be used (subject to control of other variables) | 130 Renaming may still be used (subject to control of other variables) |
131 when it would not result in changing the owner of the file or if the owner | 131 when it would not result in changing the owner of the file or if the owner |
132 has a user id greater than the value of this variable. This is useful | 132 has a user id greater than the value of this variable. This is useful |
133 when low-numbered uid's are used for special system users (such as root) | 133 when low-numbered uid's are used for special system users (such as root) |
134 that must maintain ownership of certain files. | 134 that must maintain ownership of certain files. |
140 (defvar backup-enable-predicate 'normal-backup-enable-predicate | 140 (defvar backup-enable-predicate 'normal-backup-enable-predicate |
141 "Predicate that looks at a file name and decides whether to make backups. | 141 "Predicate that looks at a file name and decides whether to make backups. |
142 Called with an absolute file name as argument, it returns t to enable backup.") | 142 Called with an absolute file name as argument, it returns t to enable backup.") |
143 | 143 |
144 (defcustom buffer-offer-save nil | 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 Do so even if the buffer is not visiting a file. | 146 Do so even if the buffer is not visiting a file. |
147 Automatically local in all buffers." | 147 Automatically local in all buffers." |
148 :type 'boolean | 148 :type 'boolean |
149 :group 'backup) | 149 :group 'backup) |
150 (make-variable-buffer-local 'buffer-offer-save) | 150 (make-variable-buffer-local 'buffer-offer-save) |
151 | 151 |
152 (defcustom find-file-existing-other-name t | 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 This means if any existing buffer is visiting the file you want | 154 This means if any existing buffer is visiting the file you want |
155 under another name, you get the existing buffer instead of a new buffer." | 155 under another name, you get the existing buffer instead of a new buffer." |
156 :type 'boolean | 156 :type 'boolean |
157 :group 'find-file) | 157 :group 'find-file) |
158 | 158 |
163 :type 'boolean | 163 :type 'boolean |
164 :group 'find-file) | 164 :group 'find-file) |
165 (put 'find-file-visit-truename 'safe-local-variable 'boolean) | 165 (put 'find-file-visit-truename 'safe-local-variable 'boolean) |
166 | 166 |
167 (defcustom revert-without-query nil | 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 The value is a list of regular expressions. | 169 The value is a list of regular expressions. |
170 If the file name matches one of these regular expressions, | 170 If the file name matches one of these regular expressions, |
171 then `revert-buffer' reverts the file without querying | 171 then `revert-buffer' reverts the file without querying |
172 if the file has changed on disk and you have not edited the buffer." | 172 if the file has changed on disk and you have not edited the buffer." |
173 :type '(repeat regexp) | 173 :type '(repeat regexp) |
224 "[|<>\"?*\000-\031]")) ; invalid characters | 224 "[|<>\"?*\000-\031]")) ; invalid characters |
225 (t "[\000]")) | 225 (t "[\000]")) |
226 "Regexp recognizing file names which aren't allowed by the filesystem.") | 226 "Regexp recognizing file names which aren't allowed by the filesystem.") |
227 | 227 |
228 (defcustom file-precious-flag nil | 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 Some modes set this non-nil in particular buffers. | 230 Some modes set this non-nil in particular buffers. |
231 | 231 |
232 This feature works by writing the new contents into a temporary file | 232 This feature works by writing the new contents into a temporary file |
233 and then renaming the temporary file to replace the original. | 233 and then renaming the temporary file to replace the original. |
234 In this way, any I/O error in writing leaves the original untouched, | 234 In this way, any I/O error in writing leaves the original untouched, |
239 breaks any hard links between it and other files." | 239 breaks any hard links between it and other files." |
240 :type 'boolean | 240 :type 'boolean |
241 :group 'backup) | 241 :group 'backup) |
242 | 242 |
243 (defcustom version-control nil | 243 (defcustom version-control nil |
244 "*Control use of version numbers for backup files. | 244 "Control use of version numbers for backup files. |
245 t means make numeric backup versions unconditionally. | 245 t means make numeric backup versions unconditionally. |
246 nil means make them for files that have some already. | 246 nil means make them for files that have some already. |
247 `never' means do not make them." | 247 `never' means do not make them." |
248 :type '(choice (const :tag "Never" never) | 248 :type '(choice (const :tag "Never" never) |
249 (const :tag "If existing" nil) | 249 (const :tag "If existing" nil) |
252 :group 'vc) | 252 :group 'vc) |
253 (put 'version-control 'safe-local-variable | 253 (put 'version-control 'safe-local-variable |
254 '(lambda (x) (or (booleanp x) (equal x 'never)))) | 254 '(lambda (x) (or (booleanp x) (equal x 'never)))) |
255 | 255 |
256 (defcustom dired-kept-versions 2 | 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 :type 'integer | 258 :type 'integer |
259 :group 'backup | 259 :group 'backup |
260 :group 'dired) | 260 :group 'dired) |
261 | 261 |
262 (defcustom delete-old-versions nil | 262 (defcustom delete-old-versions nil |
263 "*If t, delete excess backup versions silently. | 263 "If t, delete excess backup versions silently. |
264 If nil, ask confirmation. Any other value prevents any trimming." | 264 If nil, ask confirmation. Any other value prevents any trimming." |
265 :type '(choice (const :tag "Delete" t) | 265 :type '(choice (const :tag "Delete" t) |
266 (const :tag "Ask" nil) | 266 (const :tag "Ask" nil) |
267 (other :tag "Leave" other)) | 267 (other :tag "Leave" other)) |
268 :group 'backup) | 268 :group 'backup) |
269 | 269 |
270 (defcustom kept-old-versions 2 | 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 :type 'integer | 272 :type 'integer |
273 :group 'backup) | 273 :group 'backup) |
274 (put 'kept-old-versions 'safe-local-variable 'integerp) | 274 (put 'kept-old-versions 'safe-local-variable 'integerp) |
275 | 275 |
276 (defcustom kept-new-versions 2 | 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 Includes the new backup. Must be > 0" | 278 Includes the new backup. Must be > 0" |
279 :type 'integer | 279 :type 'integer |
280 :group 'backup) | 280 :group 'backup) |
281 (put 'kept-new-versions 'safe-local-variable 'integerp) | 281 (put 'kept-new-versions 'safe-local-variable 'integerp) |
282 | 282 |
283 (defcustom require-final-newline nil | 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 A value of t means do this only when the file is about to be saved. | 286 A value of t means do this only when the file is about to be saved. |
287 A value of `visit' means do this right after the file is visited. | 287 A value of `visit' means do this right after the file is visited. |
288 A value of `visit-save' means do it at both of those times. | 288 A value of `visit-save' means do it at both of those times. |
289 Any other non-nil value means ask user whether to add a newline, when saving. | 289 Any other non-nil value means ask user whether to add a newline, when saving. |
297 (const :tag "Don't add newlines" nil) | 297 (const :tag "Don't add newlines" nil) |
298 (other :tag "Ask each time" ask)) | 298 (other :tag "Ask each time" ask)) |
299 :group 'editing-basics) | 299 :group 'editing-basics) |
300 | 300 |
301 (defcustom mode-require-final-newline t | 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 Those modes set `require-final-newline' to this value when you enable them. | 303 Those modes set `require-final-newline' to this value when you enable them. |
304 They do so because they are often used for files that are supposed | 304 They do so because they are often used for files that are supposed |
305 to end in newlines, and the question is how to arrange that. | 305 to end in newlines, and the question is how to arrange that. |
306 | 306 |
307 A value of t means do this only when the file is about to be saved. | 307 A value of t means do this only when the file is about to be saved. |
320 (other :tag "Ask each time" ask)) | 320 (other :tag "Ask each time" ask)) |
321 :group 'editing-basics | 321 :group 'editing-basics |
322 :version "22.1") | 322 :version "22.1") |
323 | 323 |
324 (defcustom auto-save-default t | 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 :type 'boolean | 326 :type 'boolean |
327 :group 'auto-save) | 327 :group 'auto-save) |
328 | 328 |
329 (defcustom auto-save-visited-file-name nil | 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 Normally auto-save files are written under other names." | 331 Normally auto-save files are written under other names." |
332 :type 'boolean | 332 :type 'boolean |
333 :group 'auto-save) | 333 :group 'auto-save) |
334 | 334 |
335 (defcustom auto-save-file-name-transforms | 335 (defcustom auto-save-file-name-transforms |
336 `(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" | 336 `(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" |
337 ;; Don't put "\\2" inside expand-file-name, since it will be | 337 ;; Don't put "\\2" inside expand-file-name, since it will be |
338 ;; transformed to "/2" on DOS/Windows. | 338 ;; transformed to "/2" on DOS/Windows. |
339 ,(concat temporary-file-directory "\\2") t)) | 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 Each transform is a list (REGEXP REPLACEMENT UNIQUIFY): | 341 Each transform is a list (REGEXP REPLACEMENT UNIQUIFY): |
342 REGEXP is a regular expression to match against the file name. | 342 REGEXP is a regular expression to match against the file name. |
343 If it matches, `replace-match' is used to replace the | 343 If it matches, `replace-match' is used to replace the |
344 matching part with REPLACEMENT. | 344 matching part with REPLACEMENT. |
345 If the optional element UNIQUIFY is non-nil, the auto-save file name is | 345 If the optional element UNIQUIFY is non-nil, the auto-save file name is |
362 :type '(repeat (list (string :tag "Regexp") (string :tag "Replacement") | 362 :type '(repeat (list (string :tag "Regexp") (string :tag "Replacement") |
363 (boolean :tag "Uniquify"))) | 363 (boolean :tag "Uniquify"))) |
364 :version "21.1") | 364 :version "21.1") |
365 | 365 |
366 (defcustom save-abbrevs t | 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 If `silently', don't ask the user before saving." | 368 If `silently', don't ask the user before saving." |
369 :type '(choice (const t) (const nil) (const silently)) | 369 :type '(choice (const t) (const nil) (const silently)) |
370 :group 'abbrev) | 370 :group 'abbrev) |
371 | 371 |
372 (defcustom find-file-run-dired t | 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 To visit the directory, `find-file' runs `find-directory-functions'." | 374 To visit the directory, `find-file' runs `find-directory-functions'." |
375 :type 'boolean | 375 :type 'boolean |
376 :group 'find-file) | 376 :group 'find-file) |
377 | 377 |
378 (defcustom find-directory-functions '(cvs-dired-noselect dired-noselect) | 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 Each function is called with the directory name as the sole argument | 380 Each function is called with the directory name as the sole argument |
381 and should return either a buffer or nil." | 381 and should return either a buffer or nil." |
382 :type '(hook :options (cvs-dired-noselect dired-noselect)) | 382 :type '(hook :options (cvs-dired-noselect dired-noselect)) |
383 :group 'find-file) | 383 :group 'find-file) |
384 | 384 |
446 (make-variable-buffer-local 'write-contents-functions) | 446 (make-variable-buffer-local 'write-contents-functions) |
447 (define-obsolete-variable-alias 'write-contents-hooks | 447 (define-obsolete-variable-alias 'write-contents-hooks |
448 'write-contents-functions "22.1") | 448 'write-contents-functions "22.1") |
449 | 449 |
450 (defcustom enable-local-variables t | 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 The value can be t, nil, :safe, or something else. | 452 The value can be t, nil, :safe, or something else. |
453 | 453 |
454 A value of t means file local variables specifications are obeyed | 454 A value of t means file local variables specifications are obeyed |
455 if all the specified variable values are safe; if any values are | 455 if all the specified variable values are safe; if any values are |
456 not safe, Emacs queries you, once, whether to set them all. | 456 not safe, Emacs queries you, once, whether to set them all. |
504 (defalias 'unlock-buffer 'ignore)) | 504 (defalias 'unlock-buffer 'ignore)) |
505 (or (fboundp 'file-locked-p) | 505 (or (fboundp 'file-locked-p) |
506 (defalias 'file-locked-p 'ignore)) | 506 (defalias 'file-locked-p 'ignore)) |
507 | 507 |
508 (defcustom view-read-only nil | 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 In fact, this means that all read-only buffers normally have | 510 In fact, this means that all read-only buffers normally have |
511 View mode enabled, including buffers that are read-only because | 511 View mode enabled, including buffers that are read-only because |
512 you visit a file you cannot alter, and buffers you make read-only | 512 you visit a file you cannot alter, and buffers you make read-only |
513 using \\[toggle-read-only]." | 513 using \\[toggle-read-only]." |
514 :type 'boolean | 514 :type 'boolean |
1322 (match-string 1 filename) | 1322 (match-string 1 filename) |
1323 (substring filename (match-end 0))))) | 1323 (substring filename (match-end 0))))) |
1324 filename))) | 1324 filename))) |
1325 | 1325 |
1326 (defcustom find-file-not-true-dirname-list nil | 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 On VMS, when you visit a file using a logical name that searches a path, | 1328 On VMS, when you visit a file using a logical name that searches a path, |
1329 you may or may not want the visited file name to record the specific | 1329 you may or may not want the visited file name to record the specific |
1330 directory where the file was found. If you *do not* want that, add the logical | 1330 directory where the file was found. If you *do not* want that, add the logical |
1331 name to this list as a string." | 1331 name to this list as a string." |
1332 :type '(repeat (string :tag "Name")) | 1332 :type '(repeat (string :tag "Name")) |
1371 (setq found (car list)))) | 1371 (setq found (car list)))) |
1372 (setq list (cdr list)))) | 1372 (setq list (cdr list)))) |
1373 found)))) | 1373 found)))) |
1374 | 1374 |
1375 (defcustom find-file-wildcards t | 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 For example, if you specify `*.c', that would visit all the files | 1377 For example, if you specify `*.c', that would visit all the files |
1378 whose names match the pattern." | 1378 whose names match the pattern." |
1379 :group 'files | 1379 :group 'files |
1380 :version "20.4" | 1380 :version "20.4" |
1381 :type 'boolean) | 1381 :type 'boolean) |
1382 | 1382 |
1383 (defcustom find-file-suppress-same-file-warnings nil | 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 When nil, Emacs prints a warning when visiting a file that is already | 1385 When nil, Emacs prints a warning when visiting a file that is already |
1386 visited, but with a different name. Setting this option to t | 1386 visited, but with a different name. Setting this option to t |
1387 suppresses this warning." | 1387 suppresses this warning." |
1388 :group 'files | 1388 :group 'files |
1389 :version "21.1" | 1389 :version "21.1" |
2301 symbol and VAL is a value that is considered safe." | 2301 symbol and VAL is a value that is considered safe." |
2302 :group 'find-file | 2302 :group 'find-file |
2303 :type 'alist) | 2303 :type 'alist) |
2304 | 2304 |
2305 (defcustom safe-local-eval-forms nil | 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 Add expressions to this list if you want Emacs to evaluate them, when | 2307 Add expressions to this list if you want Emacs to evaluate them, when |
2308 they appear in an `eval' local variable specification, without first | 2308 they appear in an `eval' local variable specification, without first |
2309 asking you for confirmation." | 2309 asking you for confirmation." |
2310 :group 'find-file | 2310 :group 'find-file |
2311 :version "22.1" | 2311 :version "22.1" |
2763 (set-text-properties 0 (length val) nil val)) | 2763 (set-text-properties 0 (length val) nil val)) |
2764 (set (make-local-variable var) val)))) | 2764 (set (make-local-variable var) val)))) |
2765 | 2765 |
2766 | 2766 |
2767 (defcustom change-major-mode-with-file-name t | 2767 (defcustom change-major-mode-with-file-name t |
2768 "*Non-nil means \\[write-file] should set the major mode from the file name. | 2768 "Non-nil means \\[write-file] should set the major mode from the file name. |
2769 However, the mode will not be changed if | 2769 However, the mode will not be changed if |
2770 \(1) a local variables list or the `-*-' line specifies a major mode, or | 2770 \(1) a local variables list or the `-*-' line specifies a major mode, or |
2771 \(2) the current major mode is a \"special\" mode, | 2771 \(2) the current major mode is a \"special\" mode, |
2772 \ not suitable for ordinary files, or | 2772 \ not suitable for ordinary files, or |
2773 \(3) the new file name does not particularly specify any mode." | 2773 \(3) the new file name does not particularly specify any mode." |
4498 ;; not its part. Make the regexp say so. | 4498 ;; not its part. Make the regexp say so. |
4499 (concat "\\`" result "\\'"))) | 4499 (concat "\\`" result "\\'"))) |
4500 | 4500 |
4501 (defcustom list-directory-brief-switches | 4501 (defcustom list-directory-brief-switches |
4502 (if (eq system-type 'vax-vms) "" "-CF") | 4502 (if (eq system-type 'vax-vms) "" "-CF") |
4503 "*Switches for `list-directory' to pass to `ls' for brief listing." | 4503 "Switches for `list-directory' to pass to `ls' for brief listing." |
4504 :type 'string | 4504 :type 'string |
4505 :group 'dired) | 4505 :group 'dired) |
4506 | 4506 |
4507 (defcustom list-directory-verbose-switches | 4507 (defcustom list-directory-verbose-switches |
4508 (if (eq system-type 'vax-vms) | 4508 (if (eq system-type 'vax-vms) |
4509 "/PROTECTION/SIZE/DATE/OWNER/WIDTH=(OWNER:10)" | 4509 "/PROTECTION/SIZE/DATE/OWNER/WIDTH=(OWNER:10)" |
4510 "-l") | 4510 "-l") |
4511 "*Switches for `list-directory' to pass to `ls' for verbose listing." | 4511 "Switches for `list-directory' to pass to `ls' for verbose listing." |
4512 :type 'string | 4512 :type 'string |
4513 :group 'dired) | 4513 :group 'dired) |
4514 | 4514 |
4515 (defun file-expand-wildcards (pattern &optional full) | 4515 (defun file-expand-wildcards (pattern &optional full) |
4516 "Expand wildcard pattern PATTERN. | 4516 "Expand wildcard pattern PATTERN. |
4637 | 4637 |
4638 (defvar insert-directory-program "ls" | 4638 (defvar insert-directory-program "ls" |
4639 "Absolute or relative name of the `ls' program used by `insert-directory'.") | 4639 "Absolute or relative name of the `ls' program used by `insert-directory'.") |
4640 | 4640 |
4641 (defcustom directory-free-space-program "df" | 4641 (defcustom directory-free-space-program "df" |
4642 "*Program to get the amount of free space on a file system. | 4642 "Program to get the amount of free space on a file system. |
4643 We assume the output has the format of `df'. | 4643 We assume the output has the format of `df'. |
4644 The value of this variable must be just a command name or file name; | 4644 The value of this variable must be just a command name or file name; |
4645 if you want to specify options, use `directory-free-space-args'. | 4645 if you want to specify options, use `directory-free-space-args'. |
4646 | 4646 |
4647 A value of nil disables this feature. | 4647 A value of nil disables this feature. |
4651 :type '(choice (string :tag "Program") (const :tag "None" nil)) | 4651 :type '(choice (string :tag "Program") (const :tag "None" nil)) |
4652 :group 'dired) | 4652 :group 'dired) |
4653 | 4653 |
4654 (defcustom directory-free-space-args | 4654 (defcustom directory-free-space-args |
4655 (if (eq system-type 'darwin) "-k" "-Pk") | 4655 (if (eq system-type 'darwin) "-k" "-Pk") |
4656 "*Options to use when running `directory-free-space-program'." | 4656 "Options to use when running `directory-free-space-program'." |
4657 :type 'string | 4657 :type 'string |
4658 :group 'dired) | 4658 :group 'dired) |
4659 | 4659 |
4660 (defun get-free-disk-space (dir) | 4660 (defun get-free-disk-space (dir) |
4661 "Return the amount of free space on directory DIR's file system. | 4661 "Return the amount of free space on directory DIR's file system. |