fire action when post is being edited as well as saved?

The documentation for the save_post action says:

save_post is an action triggered whenever a post or page is created or updated, which could be from an import, post/page edit form, xmlrpc, or post by email.

So, you should only need the save_post action to run the desired code when the post is changed.

error code: 523