From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: copyright-update-directory / Copyright at the bottom of files Date: Sun, 02 Mar 2008 21:00:41 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204509656 6853 80.91.229.12 (3 Mar 2008 02:00:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2008 02:00:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 03 03:01:22 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JVzzW-0003Pt-6A for ged-emacs-devel@m.gmane.org; Mon, 03 Mar 2008 03:01:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVzyz-0002GC-4r for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 21:00:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVzyu-0002G4-UG for emacs-devel@gnu.org; Sun, 02 Mar 2008 21:00:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVzys-0002Fe-89 for emacs-devel@gnu.org; Sun, 02 Mar 2008 21:00:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVzys-0002FZ-2h for emacs-devel@gnu.org; Sun, 02 Mar 2008 21:00:42 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JVzyr-0004Tm-P8 for emacs-devel@gnu.org; Sun, 02 Mar 2008 21:00:41 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JVzyr-0004RM-Df; Sun, 02 Mar 2008 21:00:41 -0500 X-Spook: David John Oates Rule Psix ASPIC Ft. Meade Elvis Firefly X-Ran: GTxgo5?R"\h'.ji:6@@d}LYr8XyYFEpBN8j}v'J,JbCL`yQZ!noT89TD)CC7aWN4%:o\Jj X-Hue: magenta X-Attribution: GM In-Reply-To: (Reiner Steib's message of "Sun, 02 Mar 2008 16:31:00 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91135 Archived-At: 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?