From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: trivial bug of font-lock in Change Log mode. Date: Fri, 27 May 2005 14:45:29 +0300 Organization: JURTA Message-ID: <87psvcx5yk.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117194947 11896 80.91.229.2 (27 May 2005 11:55:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 May 2005 11:55:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 27 13:55:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbdPu-000689-6m for ged-emacs-devel@m.gmane.org; Fri, 27 May 2005 13:54:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbdMA-0000dz-CI for ged-emacs-devel@m.gmane.org; Fri, 27 May 2005 07:50:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DbdLf-0000X7-Qn for emacs-devel@gnu.org; Fri, 27 May 2005 07:49:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DbdLZ-0000TS-3P for emacs-devel@gnu.org; Fri, 27 May 2005 07:49:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbdLY-0000TH-7t for emacs-devel@gnu.org; Fri, 27 May 2005 07:49:48 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DbdJx-0000fB-8X for emacs-devel@gnu.org; Fri, 27 May 2005 07:48:10 -0400 Original-Received: from mail.neti.ee (80-235-33-24-dsl.mus.estpak.ee [80.235.33.24]) by Relayhost2.neti.ee (Postfix) with ESMTP id 4F3CF5A16; Fri, 27 May 2005 14:47:11 +0300 (EEST) Original-To: Kenichi Handa In-Reply-To: (Kenichi Handa's message of "Thu, 26 May 2005 10:00:39 +0900") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:37766 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37766 > For instance, emacs/src/ChangeLog has this line near the > end. > > See ChangeLog.9 for earlier changes. > > When I visit this file and turn on font-lock mode, "See > Change" (the first 10 characters) gets change-log-data-face. > > It seems that the attached change fix the problem, but, it > may fail if there are some other old style than these two: > > Wed Aug 21 03:51:42 1996 > 2005-05-16 > > Could someone verify it? This will cover most ChangeLog files, but I'd rather move your new restricted date regexp to a new special variable `change-log-date-regexp' (and using it in `change-log-font-lock-keywords'), thus allowing users to override it by file local variables in ChangeLog files with a different date format. Also it seems that the format for arbitrary text in ChangeLog files is a line beginning with two spaces. Look for example in the same file emacs/src/ChangeLog for the copyright statement. It is indented with two spaces, probably with the intention to not highlight it as a date: Copyright (C) 2001, 02, 04 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted provided the copyright notice and this notice are preserved. -- Juri Linkov http://www.jurta.org/emacs/