unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* copyright-regexp
@ 2009-01-27  2:42 Miles Bader
  2009-01-27  7:26 ` copyright-regexp Ulrich Mueller
  0 siblings, 1 reply; 2+ messages in thread
From: Miles Bader @ 2009-01-27  2:42 UTC (permalink / raw)
  To: emacs-devel

I have source files with copyright statements of the form:

   Copyright (C) Bozo Inc 2006, 2007

which copyright.el failed to recognize.

I fixed this by changing copyright-regexp in my emacs to be the following:

(defcustom copyright-regexp
 "\\(©\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\
\\|[Cc]opyright\\s *:?\\s *©\\)\
\\s *\\(?:[^0-9\n]*\\s *\\)?\
\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
  "What your copyright notice looks like.
The second \\( \\) construct must match the years."
  :group 'copyright
  :type 'regexp)

Does this seem ok?

Thanks,

-Miles

-- 
Arrest, v. Formally to detain one accused of unusualness.




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

* Re: copyright-regexp
  2009-01-27  2:42 copyright-regexp Miles Bader
@ 2009-01-27  7:26 ` Ulrich Mueller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Mueller @ 2009-01-27  7:26 UTC (permalink / raw)
  To: Miles Bader; +Cc: emacs-devel

>>>>> On Tue, 27 Jan 2009, Miles Bader wrote:

> I have source files with copyright statements of the form:

>    Copyright (C) Bozo Inc 2006, 2007

> which copyright.el failed to recognize.

I've also seen something like the following already [1,2]:

   ;; Bozoup(P) 1995 The Bozo(tic) Softwar(e) Founda(t)ion, Inc.

If the above are the same bozos ;-) then I would say don't bother to
fix it.

Ulrich

[1] <http://www.splode.com/~friedman/software/emacs-lisp/src/horoscope.el>
[2] <http://www.splode.com/~friedman/software/emacs-lisp/src/uboat.el>




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

end of thread, other threads:[~2009-01-27  7:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-27  2:42 copyright-regexp Miles Bader
2009-01-27  7:26 ` copyright-regexp Ulrich Mueller

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).