From unknown Sun Aug 17 22:10:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2209: 23.0.90; copyright-update might not update copyright Reply-To: "Marshall, Simon" , 2209@debbugs.gnu.org Resent-From: "Marshall, Simon" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 05 Feb 2009 16:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2209 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123385201911928 (code B ref -1); Thu, 05 Feb 2009 16:50:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Feb 2009 16:40:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.1 required=4.0 tests=FOURLA,MULTALT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 n15GeEEX011706 for ; Thu, 5 Feb 2009 08:40:16 -0800 Received: from mail.gnu.org ([199.232.76.166]:46775 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LV7FA-0002WD-5L for emacs-pretest-bug@gnu.org; Thu, 05 Feb 2009 11:38:24 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LV7Gt-0007JY-90 for emacs-pretest-bug@gnu.org; Thu, 05 Feb 2009 11:40:13 -0500 Received: from cluster-a.mailcontrol.com ([85.115.52.190]:59649) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LV7Gs-0007JE-Ja for emacs-pretest-bug@gnu.org; Thu, 05 Feb 2009 11:40:11 -0500 Received: from mailwhp01.misys.global.ad (host167.sequoianet.com [63.117.120.167] (may be forged)) by rly19a.srv.mailcontrol.com (MailControl) with ESMTP id n15GapZx019324 for ; Thu, 5 Feb 2009 16:40:07 GMT Received: from ukmailemea01.misys.global.ad ([10.80.55.11]) by mailwhp01.misys.global.ad with Microsoft SMTPSVC(6.0.3790.1830); Thu, 5 Feb 2009 11:40:01 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C987B0.62F9A32A" Date: Thu, 5 Feb 2009 16:39:59 -0000 Message-ID: <63C2A154B1708946B60726AFDBA00AC00388E04D@ukmailemea01.misys.global.ad> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 23.0.90; copyright-update might not update copyright Thread-Index: AcmHsGK+CN+WVHUSRzuZsiej2VzEtg== From: "Marshall, Simon" To: X-OriginalArrivalTime: 05 Feb 2009 16:40:01.0511 (UTC) FILETIME=[63CC7F70:01C987B0] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.65.0.129 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 This is a multi-part message in MIME format. ------_=_NextPart_001_01C987B0.62F9A32A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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.=20=20 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. In GNU Emacs 23.0.90.1 (sparc-sun-solaris2.8, Motif Version 2.1.0) of 2009-02-03 on risksun2 Windowing system distributor `Hummingbird Ltd.', version 11.0.100015 configured using `configure '--x-includes=3D/usr/openwin/include:/usr/dt/include:/usr/local/include:/u sr/local/X11/include' '--x-libraries=3D/usr/openwin/lib:/usr/dt/lib:/usr/local/lib:/usr/local/X1 1/lib' '--with-x-toolkit=3Dmotif' '--with-jpeg=3Dno' '--with-gif=3Dno' '--with-tiff=3Dno'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t "Misys" is the trade name for Misys plc (registered in England and Wales). = Registration Number: 01360027. Registered office: One Kingdom Street, Londo= n W2 6BL, United Kingdom. For a list of Misys group operating companies ple= ase go to http://www.misys.com/corp/About_Us/misys_operating_companies.html= . This email and any attachments have been scanned for known viruses using = multiple scanners. This email message is intended for the named recipient o= nly. It may be privileged and/or confidential. If you are not the named rec= ipient of this email please notify us immediately and do not copy it or use= it for any purpose, nor disclose its contents to any other person. This em= ail does not constitute the commencement of legal relations between you and= Misys plc. Please refer to the executed contract between you and the relev= ant member of the Misys group for the identity of the contracting party wit= h which you are dealing.=20 ------_=_NextPart_001_01C987B0.62F9A32A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 23.0.90; copyright-update might not update copyright

First, emacs -Q and i= n 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 Make= file etc) and in the *compilation* window in the new frame do C-x 1 M-: (ad= d-hook 'write-file-hooks 'copyright-update) RET.

Now in the original f= rame, 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.<= /FONT>

Now in the *compilati= on* window in the new frame do g ! SPC SPC to recompile/save/update the cop= yright notices. 

I find that one file = contains the correct:

//Copyright (c) 2008,= 2009 Foo
//Bar

But the other contain= s the erroneous:

//Copyright (c) 2008 = Foo
//Bar, 2009

With point on the com= ma in the 2nd line.

In GNU Emacs 23.0.90.= 1 (sparc-sun-solaris2.8, Motif Version 2.1.0)
 of 2009-02-03 = on risksun2
Windowing system dis= tributor `Hummingbird Ltd.', version 11.0.100015
configured using `co= nfigure  '--x-includes=3D/usr/openwin/include:/usr/dt/include:/usr/loc= al/include:/usr/local/X11/include' '--x-libraries=3D/usr/openwin/lib:/usr/d= t/lib:/usr/local/lib:/usr/local/X11/lib' '--with-x-toolkit=3Dmotif' '--with= -jpeg=3Dno' '--with-gif=3Dno' '--with-tiff=3Dno''

Important settings:
  value of $LC_= ALL: nil
  value of $LC_= COLLATE: nil
  value of $LC_= CTYPE: nil
  value of $LC_= MESSAGES: nil
  value of $LC_= MONETARY: nil
  value of $LC_= NUMERIC: nil
  value of $LC_= TIME: nil
  value of $LAN= G: C
  value of $XMO= DIFIERS: nil
  locale-coding= -system: nil
  default-enabl= e-multibyte-characters: t




"Misys" is the trade name for Misys plc (registered in England and Wa= les). Registration Number: 01360027. Registered office: One Kingdom Street,= London W2 6BL, United Kingdom. For a list of Misys group operating compani= es please go to http://www.misys.com/corp/About_Us/misys_operating_compa= nies.html. This email and any attachments have been scanned for known v= iruses using multiple scanners. This email message is intended for the name= d recipient only. It may be privileged and/or confidential. If you are not = the named recipient of this email please notify us immediately and do not c= opy it or use it for any purpose, nor disclose its contents to any other pe= rson. This email does not constitute the commencement of legal relations be= tween you and Misys plc. Please refer to the executed contract between you = and the relevant member of the Misys group for the identity of the contract= ing party with which you are dealing.

 

= ------_=_NextPart_001_01C987B0.62F9A32A-- From unknown Sun Aug 17 22:10:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2209: 23.0.90; copyright-update might not update copyright Reply-To: Chong Yidong , 2209@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 07 Feb 2009 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2209 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2209-submit@emacsbugs.donarmstrong.com id=B2209.123402917210971 (code B ref 2209); Sat, 07 Feb 2009 18:00:03 +0000 Received: (at 2209) by emacsbugs.donarmstrong.com; 7 Feb 2009 17:52:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n17Hqjvh010965 for <2209@emacsbugs.donarmstrong.com>; Sat, 7 Feb 2009 09:52:46 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id D174157E20B; Sat, 7 Feb 2009 12:53:27 -0500 (EST) From: Chong Yidong To: Daniel Pfeiffer Cc: "Marshall\, Simon" , 2209@debbugs.gnu.org Date: Sat, 07 Feb 2009 12:53:27 -0500 Message-ID: <873aeqb0bs.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi Daniel, Could you take a look at this bug report for copyright.el? Thanks. "Marshall, Simon" wrote: > 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. From unknown Sun Aug 17 22:10:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2209: 23.0.90; copyright-update might not update copyright Reply-To: Glenn Morris , 2209@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 07 Feb 2009 22:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2209 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2209-submit@emacsbugs.donarmstrong.com id=B2209.123404600117000 (code B ref 2209); Sat, 07 Feb 2009 22:40:04 +0000 Received: (at 2209) by emacsbugs.donarmstrong.com; 7 Feb 2009 22:33:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 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 From: Glenn Morris To: Chong Yidong Cc: 2209@debbugs.gnu.org, Daniel Pfeiffer , "Marshall, Simon" References: <873aeqb0bs.fsf@cyd.mit.edu> 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 Date: Sat, 07 Feb 2009 17:31:20 -0500 In-Reply-To: <873aeqb0bs.fsf@cyd.mit.edu> (Chong Yidong's message of "Sat, 07 Feb 2009 12:53:27 -0500") Message-ID: <3lzlgxop53.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. From unknown Sun Aug 17 22:10:49 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Marshall, Simon" Subject: bug#2209 closed by Glenn Morris (Re: bug#2209: 23.0.90; copyright-update might not update copyright) Message-ID: References: <49prhhlqcs.fsf@fencepost.gnu.org> <63C2A154B1708946B60726AFDBA00AC00388E04D@ukmailemea01.misys.global.ad> X-Emacs-PR-Message: they-closed 2209 X-Emacs-PR-Package: emacs Reply-To: 2209@debbugs.gnu.org Date: Tue, 17 Feb 2009 03:10:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1234840204-14238-1" This is a multi-part message in MIME format... ------------=_1234840204-14238-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #2209: 23.0.90; copyright-update might not update copyright It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 2209: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2209 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1234840204-14238-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2209-done) by emacsbugs.donarmstrong.com; 17 Feb 2009 03:02:47 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 n1H32ehP012207 for <2209-done@emacsbugs.donarmstrong.com>; Mon, 16 Feb 2009 19:02:42 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LZGCJ-0003M8-QM; Mon, 16 Feb 2009 22:00:35 -0500 From: Glenn Morris To: 2209-done@debbugs.gnu.org Subject: Re: bug#2209: 23.0.90; copyright-update might not update copyright References: <873aeqb0bs.fsf@cyd.mit.edu> <3lzlgxop53.fsf@fencepost.gnu.org> X-Spook: UOP radar e-bomb ICE MD2 Perl-RSA Consul M-14 X-Ran: ),O?_0Kwg\B@/L>egusBdOcBh@!6oJ+U#+aK~WB/x6.*.-c+/\c7$FhQ#\309Y~by}IA%q X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 16 Feb 2009 22:00:35 -0500 Message-ID: <49prhhlqcs.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Glenn Morris wrote: > 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. Installed, in the absence of comments. ------------=_1234840204-14238-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 5 Feb 2009 16:40:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.1 required=4.0 tests=FOURLA,MULTALT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 n15GeEEX011706 for ; Thu, 5 Feb 2009 08:40:16 -0800 Received: from mail.gnu.org ([199.232.76.166]:46775 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LV7FA-0002WD-5L for emacs-pretest-bug@gnu.org; Thu, 05 Feb 2009 11:38:24 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LV7Gt-0007JY-90 for emacs-pretest-bug@gnu.org; Thu, 05 Feb 2009 11:40:13 -0500 Received: from cluster-a.mailcontrol.com ([85.115.52.190]:59649) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LV7Gs-0007JE-Ja for emacs-pretest-bug@gnu.org; Thu, 05 Feb 2009 11:40:11 -0500 Received: from mailwhp01.misys.global.ad (host167.sequoianet.com [63.117.120.167] (may be forged)) by rly19a.srv.mailcontrol.com (MailControl) with ESMTP id n15GapZx019324 for ; Thu, 5 Feb 2009 16:40:07 GMT Received: from ukmailemea01.misys.global.ad ([10.80.55.11]) by mailwhp01.misys.global.ad with Microsoft SMTPSVC(6.0.3790.1830); Thu, 5 Feb 2009 11:40:01 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C987B0.62F9A32A" Subject: 23.0.90; copyright-update might not update copyright Date: Thu, 5 Feb 2009 16:39:59 -0000 Message-ID: <63C2A154B1708946B60726AFDBA00AC00388E04D@ukmailemea01.misys.global.ad> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 23.0.90; copyright-update might not update copyright Thread-Index: AcmHsGK+CN+WVHUSRzuZsiej2VzEtg== From: "Marshall, Simon" To: X-OriginalArrivalTime: 05 Feb 2009 16:40:01.0511 (UTC) FILETIME=[63CC7F70:01C987B0] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.65.0.129 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 This is a multi-part message in MIME format. ------_=_NextPart_001_01C987B0.62F9A32A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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.=20=20 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. In GNU Emacs 23.0.90.1 (sparc-sun-solaris2.8, Motif Version 2.1.0) of 2009-02-03 on risksun2 Windowing system distributor `Hummingbird Ltd.', version 11.0.100015 configured using `configure '--x-includes=3D/usr/openwin/include:/usr/dt/include:/usr/local/include:/u sr/local/X11/include' '--x-libraries=3D/usr/openwin/lib:/usr/dt/lib:/usr/local/lib:/usr/local/X1 1/lib' '--with-x-toolkit=3Dmotif' '--with-jpeg=3Dno' '--with-gif=3Dno' '--with-tiff=3Dno'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t "Misys" is the trade name for Misys plc (registered in England and Wales). = Registration Number: 01360027. Registered office: One Kingdom Street, Londo= n W2 6BL, United Kingdom. For a list of Misys group operating companies ple= ase go to http://www.misys.com/corp/About_Us/misys_operating_companies.html= . This email and any attachments have been scanned for known viruses using = multiple scanners. This email message is intended for the named recipient o= nly. It may be privileged and/or confidential. If you are not the named rec= ipient of this email please notify us immediately and do not copy it or use= it for any purpose, nor disclose its contents to any other person. This em= ail does not constitute the commencement of legal relations between you and= Misys plc. Please refer to the executed contract between you and the relev= ant member of the Misys group for the identity of the contracting party wit= h which you are dealing.=20 ------_=_NextPart_001_01C987B0.62F9A32A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 23.0.90; copyright-update might not update copyright

First, emacs -Q and i= n 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 Make= file etc) and in the *compilation* window in the new frame do C-x 1 M-: (ad= d-hook 'write-file-hooks 'copyright-update) RET.

Now in the original f= rame, 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.<= /FONT>

Now in the *compilati= on* window in the new frame do g ! SPC SPC to recompile/save/update the cop= yright notices. 

I find that one file = contains the correct:

//Copyright (c) 2008,= 2009 Foo
//Bar

But the other contain= s the erroneous:

//Copyright (c) 2008 = Foo
//Bar, 2009

With point on the com= ma in the 2nd line.

In GNU Emacs 23.0.90.= 1 (sparc-sun-solaris2.8, Motif Version 2.1.0)
 of 2009-02-03 = on risksun2
Windowing system dis= tributor `Hummingbird Ltd.', version 11.0.100015
configured using `co= nfigure  '--x-includes=3D/usr/openwin/include:/usr/dt/include:/usr/loc= al/include:/usr/local/X11/include' '--x-libraries=3D/usr/openwin/lib:/usr/d= t/lib:/usr/local/lib:/usr/local/X11/lib' '--with-x-toolkit=3Dmotif' '--with= -jpeg=3Dno' '--with-gif=3Dno' '--with-tiff=3Dno''

Important settings:
  value of $LC_= ALL: nil
  value of $LC_= COLLATE: nil
  value of $LC_= CTYPE: nil
  value of $LC_= MESSAGES: nil
  value of $LC_= MONETARY: nil
  value of $LC_= NUMERIC: nil
  value of $LC_= TIME: nil
  value of $LAN= G: C
  value of $XMO= DIFIERS: nil
  locale-coding= -system: nil
  default-enabl= e-multibyte-characters: t




"Misys" is the trade name for Misys plc (registered in England and Wa= les). Registration Number: 01360027. Registered office: One Kingdom Street,= London W2 6BL, United Kingdom. For a list of Misys group operating compani= es please go to http://www.misys.com/corp/About_Us/misys_operating_compa= nies.html. This email and any attachments have been scanned for known v= iruses using multiple scanners. This email message is intended for the name= d recipient only. It may be privileged and/or confidential. If you are not = the named recipient of this email please notify us immediately and do not c= opy it or use it for any purpose, nor disclose its contents to any other pe= rson. This email does not constitute the commencement of legal relations be= tween you and Misys plc. Please refer to the executed contract between you = and the relevant member of the Misys group for the identity of the contract= ing party with which you are dealing.

 

= ------_=_NextPart_001_01C987B0.62F9A32A-- ------------=_1234840204-14238-1-- From unknown Sun Aug 17 22:10:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2209: Don't let y-or-n-p move point. Reply-To: Glenn Morris , 2209@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 18 Feb 2009 18:10:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2209 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2209-submit@emacsbugs.donarmstrong.com id=B2209.123498042025065 (code B ref 2209); Wed, 18 Feb 2009 18:10:06 +0000 Received: (at 2209) by emacsbugs.donarmstrong.com; 18 Feb 2009 18:07:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 n1II6vFL025056 for <2209@emacsbugs.donarmstrong.com>; Wed, 18 Feb 2009 10:06:58 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LZqmv-0003R1-EL; Wed, 18 Feb 2009 13:04:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18844.19905.384946.25722@fencepost.gnu.org> Date: Wed, 18 Feb 2009 13:04:49 -0500 From: Glenn Morris To: Richard Stallman cc: 2209@debbugs.gnu.org In-Reply-To: References: X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: 4j\rUn1I#L.X0O<,djd%3hl9{^`1hvTUyY}xRSt0Q{'#lt{[kTsz1e;wc}#Yy2yl$Po>y' Richard Stallman wrote (on Wed, 18 Feb 2009 at 07:09 -0500): > That change makes me worry that it is papering over the real bug. Indeed. > How does it happen that y-or-n-p moves point? Whatever it is, it > could cause trouble elsewhere too. Maybe the right fix is to make > sure it does not happen. The details are in the first message of bug 2209. In theory, you should be able to retrieve it by sending a message to request@debbugs.gnu.org, with "send 2209" in the body. From unknown Sun Aug 17 22:10:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2209: Don't let y-or-n-p move point. Reply-To: rms@gnu.org, 2209@debbugs.gnu.org Resent-From: Richard M Stallman Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 18 Feb 2009 23:15:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2209 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2209-submit@emacsbugs.donarmstrong.com id=B2209.123499848824232 (code B ref 2209); Wed, 18 Feb 2009 23:15:06 +0000 Received: (at 2209) by emacsbugs.donarmstrong.com; 18 Feb 2009 23:08:08 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 n1IN85HP024226 for <2209@emacsbugs.donarmstrong.com>; Wed, 18 Feb 2009 15:08:06 -0800 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LZvUL-0005wk-JV; Wed, 18 Feb 2009 18:05:57 -0500 Content-Type: text/plain; charset=ISO-8859-15 From: Richard M Stallman To: Glenn Morris CC: 2209@debbugs.gnu.org In-reply-to: <18844.19905.384946.25722@fencepost.gnu.org> (message from Glenn Morris on Wed, 18 Feb 2009 13:04:49 -0500) References: <18844.19905.384946.25722@fencepost.gnu.org> Message-Id: Date: Wed, 18 Feb 2009 18:05:57 -0500 > How does it happen that y-or-n-p moves point? Whatever it is, it > could cause trouble elsewhere too. Maybe the right fix is to make > sure it does not happen. The details are in the first message of bug 2209. Maybe there is a misunderstanding. I think you mean the message below, but it does not say why y-or-n-p moves point. I think it will take investigation to figure that out. Date: Thu, 5 Feb 2009 16:39:59 -0000 Message-ID: <63C2A154B1708946B60726AFDBA00AC00388E04D@ukmailemea01.misys.global.ad> To: Resent-Date: Thu, 05 Feb 2009 12:03:36 -0500 Cc: Subject: bug#2209: 23.0.90; copyright-update might not update copyright Reply-To: "Marshall, Simon" , 2209@debbugs.gnu.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C987B0.62F9A32A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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.=20=20 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. From unknown Sun Aug 17 22:10:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2209: Don't let y-or-n-p move point. Reply-To: Glenn Morris , 2209@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 19 Feb 2009 01:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2209 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2209-submit@emacsbugs.donarmstrong.com id=B2209.123500488122846 (code B ref 2209); Thu, 19 Feb 2009 01:00:03 +0000 Received: (at 2209) by emacsbugs.donarmstrong.com; 19 Feb 2009 00:54:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 n1J0scij022836 for <2209@emacsbugs.donarmstrong.com>; Wed, 18 Feb 2009 16:54:39 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LZx9S-00012N-2L; Wed, 18 Feb 2009 19:52:30 -0500 From: Glenn Morris To: rms@gnu.org Cc: 2209@debbugs.gnu.org References: <18844.19905.384946.25722@fencepost.gnu.org> X-Spook: investigation lynch Compsec Mena Vickie Weaver colonel X-Ran: HSucq4<"X[o&*X+f${{`I~=^2_n!1BJmBFJ-{Z-/S@T;x!eoYG>w`Sk+OajhZ(WI/5De_q X-Hue: green X-Attribution: GM Date: Wed, 18 Feb 2009 19:52:29 -0500 In-Reply-To: (Richard M. Stallman's message of "Wed, 18 Feb 2009 18:05:57 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Richard M Stallman wrote: > Maybe there is a misunderstanding. I think you mean the message > below, but it does not say why y-or-n-p moves point. I think it > will take investigation to figure that out. Yes. This example can be used as a test case.