From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#2209: 23.0.90; copyright-update might not update copyright Date: Sat, 07 Feb 2009 17:31:20 -0500 Message-ID: <3lzlgxop53.fsf@fencepost.gnu.org> References: <873aeqb0bs.fsf@cyd.mit.edu> Reply-To: Glenn Morris , 2209@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234046640 10495 80.91.229.12 (7 Feb 2009 22:44:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2009 22:44:00 +0000 (UTC) Cc: Daniel Pfeiffer , "Marshall, Simon" , 2209@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 07 23:45:14 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LVvvG-0007X2-3f for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Feb 2009 23:45:14 +0100 Original-Received: from localhost ([127.0.0.1]:51615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVvtw-0005tt-Pg for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Feb 2009 17:43:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVvth-0005ik-QC for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2009 17:43:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVvtf-0005fw-DG for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2009 17:43:37 -0500 Original-Received: from [199.232.76.173] (port=33582 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVvtf-0005ff-3K for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2009 17:43:35 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38145) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LVvte-0005RP-JP for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2009 17:43:34 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n17MhW6J019452; Sat, 7 Feb 2009 14:43:32 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n17Me48a018328; Sat, 7 Feb 2009 14:40:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 07 Feb 2009 22:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2209 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2209-submit@emacsbugs.donarmstrong.com id=B2209.123404600117000 (code B ref 2209); Sat, 07 Feb 2009 22:40:04 +0000 Original-Received: (at 2209) by emacsbugs.donarmstrong.com; 7 Feb 2009 22:33:21 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n17MXIFW016994 for <2209@emacsbugs.donarmstrong.com>; Sat, 7 Feb 2009 14:33:20 -0800 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LVvhp-0005KL-6z; Sat, 07 Feb 2009 17:31:21 -0500 X-Spook: UMTS quiche FIPS140 event security Compsec SHA Becker X-Ran: ep.dWV4%Aiy!laAFZ/&E[G^P-VSS9H.a'Qdir0]Szp`nZS'P&:x+5?y\zEsUL7?ai/~OS( X-Hue: red X-Attribution: GM In-Reply-To: <873aeqb0bs.fsf@cyd.mit.edu> (Chong Yidong's message of "Sat, 07 Feb 2009 12:53:27 -0500") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 07 Feb 2009 17:43:37 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25028 Archived-At: Chong Yidong wrote: > Could you take a look at this bug report for copyright.el? Thanks. FWIW, I found this goes away if one sets copyright-query nil, or wraps the y-or-n-p query in copyright-update-year in a save-excursion. >> First, emacs -Q and in the initial frame create 2 windows with 2 new >> files containing: >> >> //Copyright (c) 2008 Foo >> // >> >> Now do C-x 5 2 and in the new frame do Tools | Compile RET (it doesn't >> matter if there's no Makefile etc) and in the *compilation* window in >> the new frame do C-x 1 M-: (add-hook 'write-file-hooks >> 'copyright-update) RET. >> >> Now in the original frame, add the word "Bar" to the end of the 2nd line >> in each file, leaving point at the end of the 2nd line, and leaving the >> files modified. >> >> Now in the *compilation* window in the new frame do g ! SPC SPC to >> recompile/save/update the copyright notices. >> >> I find that one file contains the correct: >> >> //Copyright (c) 2008, 2009 Foo >> //Bar >> >> But the other contains the erroneous: >> >> //Copyright (c) 2008 Foo >> //Bar, 2009 >> >> With point on the comma in the 2nd line.