Subject: bug#15895: describe-package inserts invalid buffer when readme buffer killed in after-save-hook

From: Kazuhiro NISHIYAMA <[email-masked]>
Date: Thu, 14 Nov 2013 23:36:19 +0900

I use delete-file-if-no-contents in after-save-hook,
and open git-gutter-fringe or git-gutter-fringe+ from *Packages* buffer,
the hook asks me "Delete file and kill buffer?".
When I answer "y", the buffer for *-readme.txt killed,
and buffer-string after save-buffer in describe-package-1 returns
from invalid buffer's content.

I think that buffer-string should be before save-buffer.