[ESS] Copyright year in ess-autoloads.el
Martin Maechler
maechler at stat.math.ethz.ch
Mon Aug 25 17:46:42 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.
That ('copyright-update) is all nice, but
as others have said, we would hate to have change the
copyright of a file that is entirely unchanged, and hence contains
exactly the correct copyright.
Martin
> Best regards,
> Seb
> --
> Sebastien Vauban
More information about the ESS-help
mailing list