all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: emacs-devel@gnu.org
Cc: Glenn Morris <rgm@gnu.org>
Subject: copyright-update-directory / Copyright at the bottom of files
Date: Sun, 02 Mar 2008 16:31:00 +0100	[thread overview]
Message-ID: <v9ejatkurv.fsf@marauder.physik.uni-ulm.de> (raw)

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/




             reply	other threads:[~2008-03-02 15:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-02 15:31 Reiner Steib [this message]
2008-03-03  2:00 ` copyright-update-directory / Copyright at the bottom of files Glenn Morris
2008-04-12 10:06   ` Reiner Steib
2008-04-22  2:58     ` Glenn Morris

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=v9ejatkurv.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@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.