unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Compare file modtimes in elisp
@ 2007-04-06 14:23 Denis Bueno
  2007-04-06 17:36 ` Eric Hanchrow
  0 siblings, 1 reply; 2+ messages in thread
From: Denis Bueno @ 2007-04-06 14:23 UTC (permalink / raw)
  To: help-gnu-emacs

All-

Is there a simple way in elisp to compare two values of
(visited-file-modtime) for a buffer? I'm looking to write something
like:

(cond ((modtime-greater-than current-modtime last-modtime) ;; do something
          ))

-Denis

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

* Re: Compare file modtimes in elisp
  2007-04-06 14:23 Compare file modtimes in elisp Denis Bueno
@ 2007-04-06 17:36 ` Eric Hanchrow
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Hanchrow @ 2007-04-06 17:36 UTC (permalink / raw)
  To: help-gnu-emacs

>>>>> "Denis" == Denis Bueno <dbueno@gmail.com> writes:

    Denis> All- Is there a simple way in elisp to compare two values
    Denis> of (visited-file-modtime) for a buffer?

It's just a list of two numbers, so first compare the cars; if they're
different, you're done; if they're the same, then compare the cadrs.

-- 
I hope to get back to work on Arc soon.
        -- Paul Graham, quoted in "ACM Crossroads", no date given

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

end of thread, other threads:[~2007-04-06 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-06 14:23 Compare file modtimes in elisp Denis Bueno
2007-04-06 17:36 ` Eric Hanchrow

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