From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: copyright-update in nnfolder [was Re: Emacs 23.2.94 pretest] Date: Tue, 15 Feb 2011 15:30:52 -0500 Message-ID: References: <87lj1hs3gl.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297801953 27144 80.91.229.12 (15 Feb 2011 20:32:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 20:32:33 +0000 (UTC) Cc: Chong Yidong , Miles Bader , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 15 21:32:27 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 1PpRZQ-0004Q3-GJ for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 21:32:27 +0100 Original-Received: from localhost ([127.0.0.1]:40936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpRZN-0000bF-R3 for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 15:32:21 -0500 Original-Received: from [140.186.70.92] (port=35130 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpRYI-0008Rt-Vh for emacs-devel@gnu.org; Tue, 15 Feb 2011 15:31:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpRYH-00085U-UM for emacs-devel@gnu.org; Tue, 15 Feb 2011 15:31:14 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:54586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpRYF-00083q-AJ; Tue, 15 Feb 2011 15:31:11 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p1FKV3av017128; Tue, 15 Feb 2011 15:31:03 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 1E00BB4106; Tue, 15 Feb 2011 15:30:52 -0500 (EST) In-Reply-To: (Glenn Morris's message of "Tue, 15 Feb 2011 13:43:28 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3735=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 132.204.246.22 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:136069 Archived-At: >> *** lisp/gnus/nnfolder.el 2011-01-02 23:50:46 +0000 >> --- lisp/gnus/nnfolder.el 2011-02-15 15:47:59 +0000 > [...] >> ! (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? > 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. That's a very good point. But it's also true that it's reasonable for users to be able to set such features globally rather than having to do it for each and every major mode that they happen to use to edit normal files. There are some related concepts where we also take such special precautions, such as ignoring coding cookies in tar files. We should probably try to come up with some more general approach to solve all these centrally. E.g. define some notion of "normal file", so copyright-update can be used in "all normal files" and coding cookies would be ignored in non-normal files. Stefan