emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VC and CVS/Entries under NT


From: Kevin Rodgers
Subject: Re: VC and CVS/Entries under NT
Date: Wed, 24 Sep 2003 10:00:46 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Andre Spiegel wrote:

    (let ((mtime (nth 5 (file-attributes file))))
      (require 'parse-time)
      (let ((parsed-time
             (parse-time-string (concat (match-string 2) " +0000"))))
        (cond ((and (not (string-match "\\+" (match-string 2)))
                    (car parsed-time)
                    (equal mtime (apply 'encode-time parsed-time)))

This code fixes Dave's problem, and the Solaris issue mentioned in
Stefan's comment.  If anybody sees any problems with it, or has
suggestions how to improve it, please let me know.

(require 'parse-time) could be moved to the top level at the beginning
of vc-cvs.el; better yet, it could be elimintated if parse-time.el had
an autoload cookie for the parse-time-string function (which is the only
entry point for that library).

Is there a good reason for parse-time.el to be in the gnus directory?


--
Kevin Rodgers






reply via email to

[Prev in Thread] Current Thread [Next in Thread]