unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: trivial bug of font-lock in Change Log mode.
Date: Sat, 28 May 2005 09:48:47 +0900	[thread overview]
Message-ID: <E1DbpVP-0002nK-00@etlken> (raw)
In-Reply-To: <E1DbfhE-0004ZY-JC@fencepost.gnu.org> (message from Richard Stallman on Fri, 27 May 2005 10:20:20 -0400)

In article <E1DbfhE-0004ZY-JC@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:

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

>>  Shouldn't that regexp end with + rather than *?

>     The original regexp also ended with '*', and I don't know
>     all the variations of date line.

> It seems to me that it could not be a valid date
> if that match is empty.  Don't you think so?

The regexp always matches with non-empty text even if the
last is '*'.  If we include the part "[0-9:+ ]*" in the
second paren part, then I agree that the last should be '+'
as this:

"^\\([1-9][0-9][0-9][0-9]-[0-9-]+\\|\\(Sun\\|Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\|Sun\\) \\sw\\sw\\sw[0-9:+ ]+\\)"

But, then, we don't need the top-level paren and we can use this:

"^[1-9][0-9][0-9][0-9]-[0-9-]+\\|^\\(Sun\\|Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\|Sun\\) \\sw\\sw\\sw[0-9:+ ]+"

Anyway, I think this kind of discussion is useless unless we
know what kind of date format we are going to support.  For
instance, the current one doesn't handle this kind of date
format (note "JST"):

Sat May 28 09:41:40 JST 2005

I personally think that it's ok that we support only the
current format; something like "2005-05-13".

---
Kenichi Handa
handa@m17n.org

  reply	other threads:[~2005-05-28  0:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=E1DbpVP-0002nK-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.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).