From owner-freebsd-hackers Sun Jan 4 17:48:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA17057 for hackers-outgoing; Sun, 4 Jan 1998 17:48:24 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wcc.wcc.net (wcc.wcc.net [208.6.232.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA17032 for ; Sun, 4 Jan 1998 17:48:12 -0800 (PST) (envelope-from detlev!joelh@wcc.wcc.net) Received: from detlev.UUCP (ppp87.wcc.net [208.6.232.87]) by wcc.wcc.net (8.8.7/8.8.7) with ESMTP id TAA17206; Sun, 4 Jan 1998 19:45:02 -0600 (CST) Received: (from joelh@localhost) by detlev.UUCP (8.8.8/8.8.7) id TAA01486; Sun, 4 Jan 1998 19:47:58 -0600 (CST) (envelope-from joelh) Date: Sun, 4 Jan 1998 19:47:58 -0600 (CST) Message-Id: <199801050147.TAA01486@detlev.UUCP> To: freebsd-hackers@FreeBSD.ORG Subject: Emacs copyright update abilities From: Joel Ray Holveck Reply-to: joelh@gnu.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk Just a New Year's reminder to all those who use Emacs... If you want to have Emacs remind you when a file's copyright (if it exists) is out of date, you can include: (add-hook 'write-file-hooks 'copyright-update) (setq copyright-query t) in your .emacs file. This will cause Emacs to search the top 2000 characters for a copyright notice (including the TeX @copyright{}, octal 251, and I believe the troff copyright char), and if found, ensure that the current year is listed, and prompt you for permission to update it if necessary. This occurs on the first save of any file. This works on at least recent (last 8 months) GNU Emacs 19 releases and all GNU Emacs 20 releases. Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped