[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29935: 26.0.90; copyright-update adds year in middle of buffer
From: |
Eli Zaretskii |
Subject: |
bug#29935: 26.0.90; copyright-update adds year in middle of buffer |
Date: |
Mon, 01 Jan 2018 22:40:21 +0200 |
> Date: Mon, 01 Jan 2018 13:41:51 -0600
> From: Stephen Leake <stephen_leake@stephe-leake.org>
>
> 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.