[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command to re-read current file?

From: kgold
Subject: Re: Command to re-read current file?
Date: 4 Aug 2003 18:23:40 GMT

Besides the other answers you've received, there is also autorevert
mode, which gets the new version continuously and automatically.  It's
great for viewing log files, debug traces, etc.

; auto revert (update buffer when file changes on disk)

(autoload 'auto-revert-mode "autorevert" nil t)
(autoload 'turn-on-auto-revert-mode "autorevert" nil nil)
(autoload 'global-auto-revert-mode "autorevert" nil t)
(global-auto-revert-mode 1)
(setq auto-revert-interval 2)

bill <address@hidden> writes:
> If the file corresponding to the current buffer changes on disk,
> and I want the buffer to reflect the new version, I normally do
> "C-f [RET] yes".  It bugs me to have to answer 'yes' (or even 'y')
> in these cases.  Is there a command to tell Emacs, "re-read the
> file from disk and don't ask me about it"?

Ken Goldman   address@hidden   914-784-7646

reply via email to

[Prev in Thread] Current Thread [Next in Thread]