[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: interactive write hook failure stops subsequent write hook?
From: |
Jim Meyering |
Subject: |
Re: interactive write hook failure stops subsequent write hook? |
Date: |
Sat, 22 Jan 2005 00:11:30 +0100 |
Stefan Monnier <address@hidden> wrote:
>> and the fact that I use this:
>> (add-hook 'write-file-hooks 'copyright-update)
>
> You should use (add-hook 'before-save-hook 'copyright-update).
>
> Are you sure you don't have some other version of copyright.el lying around
> in your load-path?
> copyright.el's copyright-update function ends with:
>
> (set (make-local-variable 'copyright-update) nil)))
> ;; If a write-file-hook returns non-nil, the file is presumed to be
> written.
> nil))
>
> which should make sure it always returns nil specifically to avoid the
> problem you mention.
Thanks for the tip and explanation.
Using a snapshot from CVS of a few days ago I can
no longer reproduce the problem. I never had another
copy of copyright.el.