Subject: Re: bug#29935: recipe and improved patch

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 26 Aug 2020 15:39:15 +0200

Stephen Leake <[email-masked]> writes:

> Here is a recipe for reproducing the bug in emacs-26.0.90 -Q:
>
> Create a directory /tmp/test-copyright
> Copy the attached file_1.c-save to that directory
> Start emacs -Q
>
> (require 'copyright)
> (add-hook 'before-save-hook 'copyright-update)
> (find-file "/tmp/test-copyright/file_1.c")
>
> C-x 2
> C-x o
> C-end
> ;; insert '// changed line'
> C-x b *Messages*
> C-x o
> C-x b *scratch*
> C-x o
> M-x save-some-buffers
> !
> y
> C-x b file_1.c
>
> This shows the bug: ', 2018' was inserted on the last line in file_1.c,
> not the copyright line.

I tried this in Emacs 28, and but I was unable to reproduce this bug.
Are you still seeing this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no