Subject: bug#29935: 26.0.90; copyright-update adds year in middle of buffer

From: Eli Zaretskii <[email-masked]>
Date: Mon, 01 Jan 2018 22:40:21 +0200

> Date: Mon, 01 Jan 2018 13:41:51 -0600
> From: Stephen Leake <[email-masked]>
> 
> With copyright-update in before-save-hook, edit multiple files that need
> a copyright update, then execute save-some-buffers.
> 
> In some of the files, the new copyright year is inserted in the middle
> of the buffer (where point last was?), not in the copyright line.

This happens when save-window-excursion is used whose body switches
buffers.  This pattern should be avoided at all costs.