From: Kenichi Handa <handa@m17n.org>
Subject: trivial bug of font-lock in Change Log mode.
Date: Thu, 26 May 2005 10:00:39 +0900 [thread overview]
Message-ID: <E1Db6jn-0004kV-00@etlken> (raw)
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
next reply other threads:[~2005-05-26 1:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-26 1:00 Kenichi Handa [this message]
2005-05-26 14:54 ` trivial bug of font-lock in Change Log mode Richard Stallman
2005-05-27 0:32 ` Kenichi Handa
2005-05-27 14:20 ` Richard Stallman
2005-05-28 0:48 ` Kenichi Handa
2005-05-28 11:52 ` Richard Stallman
2005-06-10 2:25 ` Kenichi Handa
2005-05-27 11:45 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Db6jn-0004kV-00@etlken \
--to=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).