unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Radon Rosborough <radon.neon@gmail.com>
To: 31908@debbugs.gnu.org
Subject: bug#31908: Save file locks in centralized location
Date: Tue, 19 Jun 2018 22:41:13 -0600	[thread overview]
Message-ID: <CADB4rJEmaKmRO=Db_+uWMDfV3kpGfUEDtaCgcv2BvpNrQH=QMA@mail.gmail.com> (raw)

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





             reply	other threads:[~2018-06-20  4:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20  4:41 Radon Rosborough [this message]
2018-06-20  6:03 ` bug#31908: Save file locks in centralized location 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADB4rJEmaKmRO=Db_+uWMDfV3kpGfUEDtaCgcv2BvpNrQH=QMA@mail.gmail.com' \
    --to=radon.neon@gmail.com \
    --cc=31908@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).