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

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

bug#23033: 24.5; Lock file uses the same extension as the file it's lock


From: Andreas Schwab
Subject: bug#23033: 24.5; Lock file uses the same extension as the file it's locking
Date: Sun, 26 Sep 2021 10:37:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

On Sep 26 2021, Eli Zaretskii wrote:

>> From: Stefan Kangas <stefan@marxist.se>
>> Date: Sun, 26 Sep 2021 00:17:24 -0700
>> Cc: Eli Zaretskii <eliz@gnu.org>, rgm@gnu.org, 23033@debbugs.gnu.org, 
>> mgsloan@gmail.com
>> 
>> > Perhaps they're combined auto-save and lock files?
>> 
>> Something like that would be my guess.  The name ".swp" suggests it's
>> got more to do with auto-saving.
>> 
>> But come to think of it, would it be possible for us to use one combined
>> file?
>
> That'd complicate Emacs in non-trivial ways.  Currently, the auto-save
> file is just a snapshot of the file's buffer, and the lock file is a
> specialized file whose content tells us who and when locked it.  To
> put both of these in the same file would mean the file will need
> parsing.  Does it really make sense to do that?

There is also auto-save-visited-mode, which would conflict with that.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

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