[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: |
Stefan Monnier |
Subject: |
Re: interactive write hook failure stops subsequent write hook? |
Date: |
Wed, 19 Jan 2005 18:12:34 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
> 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.
Stefan
- Re: interactive write hook failure stops subsequent write hook?,
Stefan Monnier <=