From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: copyright-regexp Date: Tue, 27 Jan 2009 11:42:37 +0900 Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1233024181 13688 80.91.229.12 (27 Jan 2009 02:43:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 02:43:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 27 03:44:15 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LRdvx-0004Kk-Ob for ged-emacs-devel@m.gmane.org; Tue, 27 Jan 2009 03:44:13 +0100 Original-Received: from localhost ([127.0.0.1]:37452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRduf-0004hL-Ng for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2009 21:42:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRdub-0004f8-21 for emacs-devel@gnu.org; Mon, 26 Jan 2009 21:42:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRduZ-0004eX-Nn for emacs-devel@gnu.org; Mon, 26 Jan 2009 21:42:48 -0500 Original-Received: from [199.232.76.173] (port=36997 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRduZ-0004eR-Gw for emacs-devel@gnu.org; Mon, 26 Jan 2009 21:42:47 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:44774) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRduX-0005yZ-I7; Mon, 26 Jan 2009 21:42:46 -0500 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id n0R2gds2008090; Tue, 27 Jan 2009 11:42:39 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay11.aps.necel.com with ESMTP; Tue, 27 Jan 2009 11:42:38 +0900 Original-Received: from dhlpc061 ([10.114.112.123] [10.114.112.123]) by relay31.aps.necel.com with ESMTP; Tue, 27 Jan 2009 11:42:37 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id BEC6252E300; Tue, 27 Jan 2009 11:42:37 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop Original-Lines: 26 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108280 Archived-At: 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 "\\(=A9\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\ \\|[Cc]opyright\\s *:?\\s *=A9\\)\ \\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 --=20 Arrest, v. Formally to detain one accused of unusualness.