GNU bug report logs - #29935
26.0.90; copyright-update adds year in middle of buffer

Previous Next

Package: emacs;

Reported by: Stephen Leake <stephen_leake <at> stephe-leake.org>

Date: Mon, 1 Jan 2018 20:23:02 UTC

Severity: normal

Tags: unreproducible

Found in version 26.0.90

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stephen Leake <stephen_leake <at> stephe-leake.org>
Cc: 29935 <at> debbugs.gnu.org
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 <at> 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.




This bug report was last modified 4 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.