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