# reread-file(3)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

reread-file - Reload the current buffer's file

## SYNOPSIS

n reread-file
n reread-all

## DESCRIPTION

reread-file reloads from disk the file associated with the current buffer, this command is particularly useful when the file is continually updated by an external program. If the buffer has been edited and its name does not start with a '`*`' then the user is prompted as to whether the changes should be discarded. Also if the buffer has an active process running in it then confirmation is sort from the user before the process is killed.

The argument n can be used to change the default behavior of reread-file described above, n is a bit based flag where:-

0x01

Enables loss of work checks (default), if this flag is not supplied then the buffer is reread without any user prompts (useful in macros).

reread-all reloads all out-of-date buffers. If the argument n is specified as zero (0) then all buffers are re-read. The default with no numeric argument is reload out-of-date buffers only.

## NOTES

reread-file is a macro implemented in `tool.emf`.

## SEE ALSO

find-file(2), read-file(2), view-file(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>