emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Save unmodified buffer when file has been deleted


From: Lennart Borgman
Subject: Re: [PATCH] Save unmodified buffer when file has been deleted
Date: Fri, 11 Feb 2011 15:55:28 +0100

On Fri, Feb 11, 2011 at 3:38 PM, Stefan Monnier
<address@hidden> wrote:
>> +         (and (buffer-file-name)
>> +              (not (file-exists-p (buffer-file-name)))))
>
> Please just use the buffer-file-name variable rather than the function.
> Other than that, it looks like a good change (I've gotten used to
> hitting SPC Backspace C-x C-s, and I also use this when I just want to
> `touch' the file, so I probably won't use this feature much, tho).

Why is the variable buffer-file-name preferred over the function?



reply via email to

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