From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: copyright-update in nnfolder [was Re: Emacs 23.2.94 pretest] Date: Wed, 16 Feb 2011 11:22:59 +0900 Message-ID: <87ipwkzpj0.fsf@catnip.gol.com> References: <87lj1hs3gl.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297822996 2790 80.91.229.12 (16 Feb 2011 02:23:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Feb 2011 02:23:16 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 16 03:23:11 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpX2t-0005Uc-Gp for ged-emacs-devel@m.gmane.org; Wed, 16 Feb 2011 03:23:11 +0100 Original-Received: from localhost ([127.0.0.1]:35881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpX2s-0007y0-Pq for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 21:23:10 -0500 Original-Received: from [140.186.70.92] (port=50840 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpX2n-0007xu-7W for emacs-devel@gnu.org; Tue, 15 Feb 2011 21:23:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpX2l-00045Z-Mb for emacs-devel@gnu.org; Tue, 15 Feb 2011 21:23:05 -0500 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:57535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpX2l-00045J-BG; Tue, 15 Feb 2011 21:23:03 -0500 Original-Received: from 218.33.195.219.eo.eaccess.ne.jp ([218.33.195.219] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) (envelope-from ) id 1PpX2j-00016b-9h; Wed, 16 Feb 2011 11:23:01 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 6B1DDE065; Wed, 16 Feb 2011 11:22:59 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: (Glenn Morris's message of "Tue, 15 Feb 2011 13:43:28 -0500") Original-Lines: 37 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 203.216.5.74 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136085 Archived-At: Glenn Morris writes: >> ! (set (make-local-variable 'copyright-update) nil) > > I think it would be better for nnfolder just not to do this at all. > First, how many mail folders happen to contain copyright headers at > the start? Sadly, it's all too common for copyright headers to appear in places that confuse copyright.el; e.g., patch files that update the copyright (it sees the "from" branch first, so...)! I presume this sort of very specific workaround wouldn't have been added to nnfolder unless people had hit > Second, people should be more selective about enabling features on > buffer-save. It's not the responsibility of every package that saves a > buffer to disable every feature (trailing whitespace removal, etc) that > people might have added to save hooks. copyright.el, at least, at least _asks_ before doing something, and rarely actually takes action (because it has fairly narrow criteria for when an update is needed), so it tends to be just annoying rather than dangerous (whitespace munging without prompting is downright evil though). I agree that there should be a "better" way to do this, but unless there is, people will continue to do whatever gets the best results on average; there are annoyances _either_ way. If there's a convenient way to distinguish "text files" from "other stuff like mail archives / tar files / ...", then packages like copyright.el could check that, and ignore any non-text-files... -miles -- Dawn, n. When men of reason go to bed.