unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2209: 23.0.90; copyright-update might not update copyright
@ 2009-02-05 16:39 Marshall, Simon
  0 siblings, 0 replies; 3+ messages in thread
From: Marshall, Simon @ 2009-02-05 16:39 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Attachment #1: Type: text/plain, Size: 2572 bytes --]

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.

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=/usr/openwin/include:/usr/dt/include:/usr/local/include:/u
sr/local/X11/include'
'--x-libraries=/usr/openwin/lib:/usr/dt/lib:/usr/local/lib:/usr/local/X1
1/lib' '--with-x-toolkit=motif' '--with-jpeg=no' '--with-gif=no'
'--with-tiff=no''

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, London W2 6BL, United Kingdom. For a list of Misys group operating companies please 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 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 copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between 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 contracting party with which you are dealing. 

[-- Attachment #2: Type: text/html, Size: 5517 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#2209: 23.0.90; copyright-update might not update copyright
@ 2009-02-07 17:53 Chong Yidong
  2009-02-07 22:31 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2009-02-07 17:53 UTC (permalink / raw)
  To: Daniel Pfeiffer; +Cc: Marshall, Simon, 2209

Hi Daniel,

Could you take a look at this bug report for copyright.el?  Thanks.


"Marshall, Simon" <Simon.Marshall@misys.com> 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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#2209: 23.0.90; copyright-update might not update copyright
  2009-02-07 17:53 bug#2209: 23.0.90; copyright-update might not update copyright Chong Yidong
@ 2009-02-07 22:31 ` Glenn Morris
  0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2009-02-07 22:31 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Daniel Pfeiffer, Marshall, Simon, 2209

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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-07 22:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-07 17:53 bug#2209: 23.0.90; copyright-update might not update copyright Chong Yidong
2009-02-07 22:31 ` Glenn Morris
  -- strict thread matches above, loose matches on Subject: below --
2009-02-05 16:39 Marshall, Simon

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).