all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Copyright notices
Date: Thu, 04 Aug 2005 20:06:15 +0300	[thread overview]
Message-ID: <87irylk2gh.fsf@jurta.org> (raw)
In-Reply-To: <17134.56687.951950.51407@farnswood.snap.net.nz> (Nick Roberts's message of "Tue, 2 Aug 2005 14:41:51 +1200")

> There are about 2000 files with copyright notices.  If these are all
> done manually, changing them twice seems to me to be an inefficient
> way of working.  If, as Stefan suggests, only those changed in 2006
> need their copyright changed again then maybe it's not so bad.

I guess not all files changed in 2006 need their copyright updated.
For example, it would be good to remove trailing whitespace from all
files just before the release.  Updating copyright is not needed
after such change.

> I'll start thinking about how to do it.  Since the copyright notices
> won't be all the same any script must be able to handle the differences.
> I'm thinking of something that keeps the user in the loop, like
> query replace or ediff, where he will be presented with a proposed
> change which he can decline or accept.

A good interface for mass-replacing is query-replace.  You can just do

M-x find-dired RET -name '*.el' RET t Q

and use a function call like  \,(copyright-fix-years \0)
in the replacement part.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  parent reply	other threads:[~2005-08-04 17:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29 13:54 Copyright notices Richard M. Stallman
2005-07-29 18:10 ` Thien-Thi Nguyen
2005-07-29 21:43 ` Nick Roberts
2005-07-30 15:16   ` Richard M. Stallman
2005-07-31  0:36     ` Nick Roberts
2005-07-31 15:20       ` Stefan Monnier
2005-08-01 14:19         ` Richard M. Stallman
2005-08-01  0:45       ` Richard M. Stallman
     [not found]         ` <17134.56687.951950.51407@farnswood.snap.net.nz>
2005-08-02 17:45           ` Richard M. Stallman
2005-08-04 17:06           ` Juri Linkov [this message]
2005-08-04 19:59             ` dired-do-query-replace-regexp (was: Copyright notices) Juri Linkov
  -- strict thread matches above, loose matches on Subject: below --
2005-07-13  5:16 Copyright notices Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87irylk2gh.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.