Mercurial > emacs
comparison src/fileio.c @ 6209:2a8a76b9a2fe
(Fdo_auto_save): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 05 Mar 1994 20:36:38 +0000 |
parents | b094b321b4a6 |
children | e97a1cc44be8 |
comparison
equal
deleted
inserted
replaced
6208:db4139d43f8a | 6209:2a8a76b9a2fe |
---|---|
3408 "Auto-save all buffers that need it.\n\ | 3408 "Auto-save all buffers that need it.\n\ |
3409 This is all buffers that have auto-saving enabled\n\ | 3409 This is all buffers that have auto-saving enabled\n\ |
3410 and are changed since last auto-saved.\n\ | 3410 and are changed since last auto-saved.\n\ |
3411 Auto-saving writes the buffer into a file\n\ | 3411 Auto-saving writes the buffer into a file\n\ |
3412 so that your editing is not lost if the system crashes.\n\ | 3412 so that your editing is not lost if the system crashes.\n\ |
3413 This file is not the file you visited; that changes only when you save.\n\n\ | 3413 This file is not the file you visited; that changes only when you save.\n\ |
3414 Normally we run the normal hook `auto-save-hook' before saving.\n\n\ | |
3414 Non-nil first argument means do not print any message if successful.\n\ | 3415 Non-nil first argument means do not print any message if successful.\n\ |
3415 Non-nil second argument means save only current buffer.") | 3416 Non-nil second argument means save only current buffer.") |
3416 (no_message, current_only) | 3417 (no_message, current_only) |
3417 Lisp_Object no_message, current_only; | 3418 Lisp_Object no_message, current_only; |
3418 { | 3419 { |
3435 | 3436 |
3436 auto_saving = 1; | 3437 auto_saving = 1; |
3437 if (minibuf_level) | 3438 if (minibuf_level) |
3438 no_message = Qt; | 3439 no_message = Qt; |
3439 | 3440 |
3440 /* Vrun_hooks is nil before emacs is dumped, and inc-vers.el will | |
3441 eventually call do-auto-save, so don't err here in that case. */ | |
3442 if (!NILP (Vrun_hooks)) | 3441 if (!NILP (Vrun_hooks)) |
3443 call1 (Vrun_hooks, intern ("auto-save-hook")); | 3442 call1 (Vrun_hooks, intern ("auto-save-hook")); |
3444 | 3443 |
3445 /* First, save all files which don't have handlers. If Emacs is | 3444 /* First, save all files which don't have handlers. If Emacs is |
3446 crashing, the handlers may tweak what is causing Emacs to crash | 3445 crashing, the handlers may tweak what is causing Emacs to crash |