emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copyright-update-directory / Copyright at the bottom of files


From: Glenn Morris
Subject: Re: copyright-update-directory / Copyright at the bottom of files
Date: Sun, 02 Mar 2008 21:00:41 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Reiner Steib wrote:

> But maybe such a functionality is already there?  Glenn, how did you
> handle updating the years and the switch to GPLv3?

I used a shell-script with awk. :)

> Unless there are objections or there is a better solution available,
> I'll add this to `copyright.el' in a few days:
>
> --8<---------------cut here---------------start------------->8---
> (defun copyright-update-directory (directory match)
>   "Update copyright notice for all files in DIRECTORY matching MATCH."

Worth having, IMO.

> As because of `copyright-limit's default of 2000, it fails to update
> the years in (Gnus) ChangeLog files.  Maybe `copyright-update' should
> search at the bottom of the file as well?

Good idea. Perhaps controlled by a buffer-local variable that could be
set non-nil in ChangeLogs?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]