From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75535 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.gnus.general Subject: Re: Update copyright years automatically? Date: Mon, 03 Jan 2011 10:18:16 +1100 Organization: Bah Humbug Message-ID: <87ipy6sxmv.fsf@blah.blah> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1294010331 25508 80.91.229.12 (2 Jan 2011 23:18:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 23:18:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23886@lists.math.uh.edu Mon Jan 03 00:18:47 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZXCJ-0003lo-HR for ding-account@gmane.org; Mon, 03 Jan 2011 00:18:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PZXBx-0007kY-Fo; Sun, 02 Jan 2011 17:18:25 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PZXBw-0007kR-MF for ding@lists.math.uh.edu; Sun, 02 Jan 2011 17:18:24 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PZXBq-00011u-Vl for ding@lists.math.uh.edu; Sun, 02 Jan 2011 17:18:22 -0600 Original-Received: from mailout1-5.pacific.net.au ([61.8.2.212] helo=mailout1.pacific.net.au) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PZXBo-0005PP-5F for ding@gnus.org; Mon, 03 Jan 2011 00:18:16 +0100 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id AB6C15E2173 for ; Mon, 3 Jan 2011 10:18:11 +1100 (EST) Original-Received: from blah.blah (unknown [203.26.175.165]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 261FD8C02 for ; Mon, 3 Jan 2011 10:18:10 +1100 (EST) Original-Received: from gg by blah.blah with local (Exim 4.72) (envelope-from ) id 1PZXBp-0006og-1n for ding@gnus.org; Mon, 03 Jan 2011 10:18:17 +1100 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 02 Jan 2011 20:36:54 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75535 Archived-At: Lars Magne Ingebrigtsen writes: > > (setq before-save-hook > (lambda () Supposedly there may be an incompatible change planned in the future to take away that single func in a hook feature (http://debbugs.gnu.org/cgi-bin/bugreport.cgi?bug=5026) > (when (string-match "gnus/lisp/.*.el\\'" (buffer-file-name)) > (copyright-update)))) I never found a clean way to express what should or shouldn't be updated. > It's kinda annoying that `copyright-update' queries me when saving, though. Maybe `copyright-query'. I'd like it to show the buffer and highlight the change it's about to make, like a query-replace, since occasionally it's wrong.