From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: trivial bug of font-lock in Change Log mode. Date: Thu, 26 May 2005 10:00:39 +0900 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1117070105 25540 80.91.229.2 (26 May 2005 01:15:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 May 2005 01:15:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 26 03:15:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Db6xP-00086w-Dp for ged-emacs-devel@m.gmane.org; Thu, 26 May 2005 03:14:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Db71N-0005TG-JM for ged-emacs-devel@m.gmane.org; Wed, 25 May 2005 21:18:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Db6zr-0004gN-7R for emacs-devel@gnu.org; Wed, 25 May 2005 21:17:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Db6zo-0004ex-Uj for emacs-devel@gnu.org; Wed, 25 May 2005 21:17:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Db6zn-0004bl-Qj for emacs-devel@gnu.org; Wed, 25 May 2005 21:17:11 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Db6ng-0004t2-FV for emacs-devel@gnu.org; Wed, 25 May 2005 21:04:40 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j4Q14486030129 for ; Thu, 26 May 2005 10:04:04 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j4Q144Cq030866 for ; Thu, 26 May 2005 10:04:04 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1Db6jn-0004kV-00 for ; Thu, 26 May 2005 10:00:39 +0900 Original-To: emacs-devel@gnu.org User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:37661 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37661 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? --- Kenichi Handa handa@m17n.org *** add-log.el 12 May 2005 20:34:26 +0900 1.161 --- add-log.el 26 May 2005 09:56:08 +0900 *************** *** 217,223 **** (defvar change-log-font-lock-keywords '(;; ;; Date lines, new and old styles. ! ("^\\sw.........[0-9:+ ]*" (0 'change-log-date-face) ;; Name and e-mail; some people put e-mail in parens, not angles. ("\\([^<(]+?\\)[ \t]*[(<]\\([A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+\\)[>)]" nil nil --- 217,223 ---- (defvar change-log-font-lock-keywords '(;; ;; Date lines, new and old styles. ! ("^\\([1-9][0-9][0-9][0-9]-[0-9-]+\\|\\(Sun\\|Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\|Sun\\) \\sw\\sw\\sw\\)[0-9:+ ]*" (0 'change-log-date-face) ;; Name and e-mail; some people put e-mail in parens, not angles. ("\\([^<(]+?\\)[ \t]*[(<]\\([A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+\\)[>)]" nil nil --- Kenichi Handa handa@m17n.org