From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: copyright-update-directory / Copyright at the bottom of files Date: Sun, 02 Mar 2008 16:31:00 +0100 Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204473480 2488 80.91.229.12 (2 Mar 2008 15:58:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Mar 2008 15:58:00 +0000 (UTC) Cc: Glenn Morris To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 02 16:58:26 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 1JVqa0-0006vP-9E for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 16:58:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVqZT-0004P8-Jh for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 10:57:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVqYY-00038G-5x for emacs-devel@gnu.org; Sun, 02 Mar 2008 10:56:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVqYW-00034t-BX for emacs-devel@gnu.org; Sun, 02 Mar 2008 10:56:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVqYW-00034a-5C for emacs-devel@gnu.org; Sun, 02 Mar 2008 10:56:52 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JVqYS-0003dB-0x; Sun, 02 Mar 2008 10:56:48 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m22Fukbb000676; Sun, 2 Mar 2008 16:56:46 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id D693D12FCE; Sun, 2 Mar 2008 16:56:45 +0100 (CET) X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML; )7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+; CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf, d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.91 (gnu/linux) X-DCC-CTc-dcc2-Metrics: poseidon 1031; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:91066 Archived-At: Hi, (1) copyright-update-directory I found the command `copyright-update-directory' (see below) quite handy for updating the copyright years in Gnus (v5_10 branch). But maybe such a functionality is already there? Glenn, how did you handle updating the years and the switch to GPLv3? 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." (interactive "DDirectory: \nMFilenames matching: ") (dolist (file (directory-files directory t match nil)) (find-file file) (let ((copyright-query nil)) (copyright-update)) (save-buffer) (kill-buffer (current-buffer)))) --8<---------------cut here---------------end--------------->8--- (2) Update copyright at the bottom of files 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? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/