[ESS] Copyright year in ess-autoloads.el

Sebastien Vauban sva-news at mygooglest.com
Mon Aug 25 16:48:28 CEST 2014


Martin Maechler wrote:
> Sebastien Vauban <sva-news at mygooglest.com> on Mon, 25 Aug 2014 10:37:17 +0200 writes:
>
>     > Hello, Everytime I update ESS from MELPA, I get
>     > interrupted with the question: "Add 2014 to copyright?",
>     > as you can see:
>
>> --8<---------------cut here---------------start------------->8---
>> Saving file d:/Users/fni/.emacs.d/elpa/ess-20140824.1452/ess-autoloads.el...
>> Add 2014 to copyright? (y or n) n
>> Wrote d:/Users/fni/.emacs.d/elpa/ess-20140824.1452/ess-autoloads.el
>> --8<---------------cut here---------------end--------------->8---
>
>> This comes from the following chunk of code in my .emacs file:
>
>> --8<---------------cut here---------------start------------->8---
>>   ;; update the copyright notice to indicate the current year
>>   (add-hook 'before-save-hook 'copyright-update)
>> --8<---------------cut here---------------end--------------->8---
>
>> because the copyright year in the `ess-autoloads.el' file is NOT
>> up-to-date:
>
>> --8<---------------cut here---------------start------------->8---
>> ;; Copyright (C) 2012 Donald E. Curtis
>> --8<---------------cut here---------------end--------------->8---
>
>> Could you put an updated copyright?
>
> Well, I can (and will) easily add a line with 2014 in it.

Thanks.

> But then you would want us to update this line every year ???

Yes, I will -- and I guess it's part of the "best practices", no?

Anyway, if you do add this:

>>   (add-hook 'before-save-hook 'copyright-update)

to your .emacs file, you won't have to think about it in 2015: Emacs
will do its (asking, though, for a confirmation) as soon as you'll save
a file without the new copyright year.

Best regards,
  Seb

-- 
Sebastien Vauban



More information about the ESS-help mailing list