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: Reiner Steib
Subject: Re: copyright-update-directory / Copyright at the bottom of files
Date: Sat, 12 Apr 2008 12:06:56 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2.50 (gnu/linux)

On Mon, Mar 03 2008, Glenn Morris wrote:

> Reiner Steib wrote:
[...]
>> 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.

Added.

>> 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?

A buffer-local variable makes sense.  But ChangeLogs should be treated
like this automatically (i.e. w/o such a variable, maybe by checking
major-mode).  Are there any other files that usually have the
copyright near the end?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

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