unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* trivial bug of font-lock in Change Log mode.
@ 2005-05-26  1:00 Kenichi Handa
  2005-05-26 14:54 ` Richard Stallman
  2005-05-27 11:45 ` Juri Linkov
  0 siblings, 2 replies; 8+ messages in thread
From: Kenichi Handa @ 2005-05-26  1:00 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-06-10  2:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-26  1:00 trivial bug of font-lock in Change Log mode Kenichi Handa
2005-05-26 14:54 ` 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

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).