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: Stefan Monnier
Subject: Re: [PATCH] Save unmodified buffer when file has been deleted
Date: Fri, 11 Feb 2011 18:02:30 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>> +         (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?

Because IMHO the function is just a historical accident.
And the variable is slightly more efficient.


        Stefan



reply via email to

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