[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
copyright-regexp
From: |
Miles Bader |
Subject: |
copyright-regexp |
Date: |
Tue, 27 Jan 2009 11:42:37 +0900 |
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.
- copyright-regexp,
Miles Bader <=