[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7179: 23.2; copyright-update on spanning copyright-limit
From: |
Lars Ingebrigtsen |
Subject: |
bug#7179: 23.2; copyright-update on spanning copyright-limit |
Date: |
Fri, 04 Mar 2016 14:40:07 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Kevin Ryde <user42@zip.com.au> writes:
> If you're unlucky enough to have a copyright notice spanning the
> `copyright-limit' position in the buffer then M-x copyright-update makes
> a bit of a mess inserting the current year at the wrong place. For
> example,
>
> (progn
> (require 'copyright)
> (switch-to-buffer "foo")
> (erase-buffer)
> (insert (make-string (- copyright-limit 14) ?x) "\n"
> "\nCopyright 2006, 2007, 2008 Foo Bar\n\n")
> (copyright-update))
>
> gives
>
> Copyright 20, 1006, 2007, 2008 Foo Bar
>
> where I expected
>
> Copyright 2006, 2007, 2008, 2010 Foo Bar
I can confirm that this is still present on the current Emacs trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#7179: 23.2; copyright-update on spanning copyright-limit,
Lars Ingebrigtsen <=