[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch to autorevert.el
From: |
Klaus Berndl |
Subject: |
Re: patch to autorevert.el |
Date: |
11 Dec 2004 08:08:58 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
On 10 Dec 2004, address@hidden wrote:
> This patch adds a new hook to be run whenever a buffer is reverted.
> Original autorevert.el was distributed with Emacs 21.1
>
> ------------------------------------------------
> 130a131,135
> > (defcustom auto-revert-buffer-reverted-hook nil
> > "Functions to run when a buffer is reverted."
> > :group 'auto-revert
> > :type 'hook)
> >
> 345c350,351
> < (revert-buffer t t t)))
> ---
> > (run-hooks 'auto-revert-buffer-reverted-hook)
> > (revert-buffer t t t)))
What's wrong with `after-revert-hook' an already existing hook:
after-revert-hook's value is
(ecb-vc-after-revert-hook)
Documentation:
Normal hook for `revert-buffer' to run after reverting.
Note that the hook value that it runs is the value that was in effect
before reverting; that makes a difference if you have buffer-local
hook functions.
If `revert-buffer-function' is used to override the normal revert
mechanism, this hook is not used.
Defined in `files'.
Ciao,
Klaus
--
Klaus Berndl mailto: address@hidden
sd&m AG http://www.sdm.de
software design & management
Carl-Wery-Str. 42, 81739 Muenchen, Germany
Tel +49 89 63812-392, Fax -220