* bug#31908: Save file locks in centralized location
@ 2018-06-20 4:41 Radon Rosborough
2018-06-20 6:03 ` Phil Sainty
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Radon Rosborough @ 2018-06-20 4:41 UTC (permalink / raw)
To: 31908
While you have an unsaved buffer, Emacs creates a lock file [1] in the
current directory. This is useful to prevent concurrent edits, but it
is also annoying to have the extra file around: for example, if you
save frequently while you have a Dired pane with a fast Auto Revert
enabled in another window, the lock file will keep appearing and
disappearing rapidly.
I wish for Emacs to save its lock files in some subdirectory of my
`user-emacs-directory', rather than in the same directory as the file
under consideration. Is that possible? If not, is it possible to
implement the feature someday?
I found no relevant discussion on the bug tracker or on emacs-devel,
and I only found the discouraging [2] on Stack Exchange.
[1]: https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html
[2]: https://emacs.stackexchange.com/q/5967/12534
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31908: Save file locks in centralized location
2018-06-20 4:41 bug#31908: Save file locks in centralized location Radon Rosborough
@ 2018-06-20 6:03 ` Phil Sainty
2018-06-20 15:29 ` Radon Rosborough
2019-02-06 18:35 ` Mauro Mandracchia
2022-01-23 13:49 ` Lars Ingebrigtsen
2 siblings, 1 reply; 8+ messages in thread
From: Phil Sainty @ 2018-06-20 6:03 UTC (permalink / raw)
To: Radon Rosborough; +Cc: bug-gnu-emacs, 31908
If users had their own custom location for locks, surely the locking
would cease to have any significant purpose, because no one would ever
see a lock created by someone else?
The utility would be reduced to preventing you from simultaneously
using multiple separate emacs instances to edit/write a given file.
-Phil
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31908: Save file locks in centralized location
2018-06-20 6:03 ` Phil Sainty
@ 2018-06-20 15:29 ` Radon Rosborough
2018-06-21 8:34 ` Robert Pluim
0 siblings, 1 reply; 8+ messages in thread
From: Radon Rosborough @ 2018-06-20 15:29 UTC (permalink / raw)
To: psainty; +Cc: bug-gnu-emacs-bounces+psainty=orcon.net.nz, 31908
> If users had their own custom location for locks, surely the locking
> would cease to have any significant purpose [...] The utility would
> be reduced to preventing you from simultaneously using multiple
> separate emacs instances to edit/write a given file.
I run a single-user system; preventing concurrent edits is the only
purpose of the locking mechanism for me. This feature would hardly
remove "any significant purpose" from it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31908: Save file locks in centralized location
2018-06-20 15:29 ` Radon Rosborough
@ 2018-06-21 8:34 ` Robert Pluim
2018-06-21 16:01 ` Radon Rosborough
0 siblings, 1 reply; 8+ messages in thread
From: Robert Pluim @ 2018-06-21 8:34 UTC (permalink / raw)
To: Radon Rosborough
Cc: psainty, bug-gnu-emacs-bounces+psainty=orcon.net.nz, 31908
Radon Rosborough <radon.neon@gmail.com> writes:
>> If users had their own custom location for locks, surely the locking
>> would cease to have any significant purpose [...] The utility would
>> be reduced to preventing you from simultaneously using multiple
>> separate emacs instances to edit/write a given file.
>
> I run a single-user system; preventing concurrent edits is the only
> purpose of the locking mechanism for me. This feature would hardly
> remove "any significant purpose" from it.
If implemented, this feature would almost certainly be off by default,
so no existing users would end up being surprised.
Robert
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31908: Save file locks in centralized location
2018-06-20 4:41 bug#31908: Save file locks in centralized location Radon Rosborough
2018-06-20 6:03 ` Phil Sainty
@ 2019-02-06 18:35 ` Mauro Mandracchia
2019-02-06 19:39 ` Eli Zaretskii
2022-01-23 13:49 ` Lars Ingebrigtsen
2 siblings, 1 reply; 8+ messages in thread
From: Mauro Mandracchia @ 2019-02-06 18:35 UTC (permalink / raw)
To: 31908
[-- Attachment #1: Type: text/plain, Size: 29 bytes --]
Is there any update on this?
[-- Attachment #2: Type: text/html, Size: 139 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31908: Save file locks in centralized location
2018-06-20 4:41 bug#31908: Save file locks in centralized location Radon Rosborough
2018-06-20 6:03 ` Phil Sainty
2019-02-06 18:35 ` Mauro Mandracchia
@ 2022-01-23 13:49 ` Lars Ingebrigtsen
2 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-23 13:49 UTC (permalink / raw)
To: Radon Rosborough; +Cc: 31908
Radon Rosborough <radon.neon@gmail.com> writes:
> While you have an unsaved buffer, Emacs creates a lock file [1] in the
> current directory. This is useful to prevent concurrent edits, but it
> is also annoying to have the extra file around: for example, if you
> save frequently while you have a Dired pane with a fast Auto Revert
> enabled in another window, the lock file will keep appearing and
> disappearing rapidly.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
This has been fixed for Emacs 28 by the introduction of the
`lock-file-name-transforms' variable, so I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-01-23 13:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-20 4:41 bug#31908: Save file locks in centralized location Radon Rosborough
2018-06-20 6:03 ` Phil Sainty
2018-06-20 15:29 ` Radon Rosborough
2018-06-21 8:34 ` Robert Pluim
2018-06-21 16:01 ` Radon Rosborough
2019-02-06 18:35 ` Mauro Mandracchia
2019-02-06 19:39 ` Eli Zaretskii
2022-01-23 13:49 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.