help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Comparing last modification time without dired?


From: Loris Bennett
Subject: Re: Comparing last modification time without dired?
Date: Fri, 07 Nov 2014 09:25:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi Michael,

Michael Albinus <michael.albinus@gmx.de> writes:

> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>
>> Hi,
>
> Hi Loris,
>
>> If I have two buffers and want to see which of the corresponding files
>> is the more recent, is there a faster way of doing it than running dired
>> for each of the corresponding directories?
>
> (file-newer-than-file-p (buffer-file-name buf1) (buffer-file-name buf2))

Thanks for this.  If I want to do this as part of an interactive
function, how would I invoke the choice of buffers like ediff-buffers
does?

>> Cheers,
>>
>> Loris
>
> Best regards, Michael.
>
Cheers,

Loris

-- 
This signature is currently under construction.


reply via email to

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