From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Radon Rosborough Newsgroups: gmane.emacs.bugs Subject: bug#31908: Save file locks in centralized location Date: Tue, 19 Jun 2018 22:41:13 -0600 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1529469668 22268 195.159.176.226 (20 Jun 2018 04:41:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2018 04:41:08 +0000 (UTC) To: 31908@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 20 06:41:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVUvX-0005el-El for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jun 2018 06:41:03 +0200 Original-Received: from localhost ([::1]:46043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVUxc-0006GK-Jk for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jun 2018 00:43:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVUxT-0006G3-90 for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 00:43:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVUxS-0002kp-8r for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 00:43:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48934) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVUxS-0002kk-4h for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 00:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fVUxR-00008R-RD for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 00:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Radon Rosborough Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jun 2018 04:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31908 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1529469722445 (code B ref -1); Wed, 20 Jun 2018 04:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jun 2018 04:42:02 +0000 Original-Received: from localhost ([127.0.0.1]:56831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVUwU-000077-Bh for submit@debbugs.gnu.org; Wed, 20 Jun 2018 00:42:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVUwT-00006e-FX for submit@debbugs.gnu.org; Wed, 20 Jun 2018 00:42:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVUwN-0002OP-3c for submit@debbugs.gnu.org; Wed, 20 Jun 2018 00:41:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVUwN-0002OJ-0R for submit@debbugs.gnu.org; Wed, 20 Jun 2018 00:41:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVUwL-0006DM-Or for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 00:41:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVUwK-0002NE-RS for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 00:41:53 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:34664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVUwK-0002Mp-K2 for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 00:41:52 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id e13-v6so2545159lfc.1 for ; Tue, 19 Jun 2018 21:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/gQTr+Hd36TNgwBSquvgJuzzB/CqHEhhWxzKQDBdIKs=; b=uNn2C0agaPOMELlki3Vj6dORaYWjJc/bb59EuD7swIPYpQBjk50C2jBuTWCxfk5WPg gQgMoPaAtiYs+1yy2V4dxvHDeKsBmNcmR6zZCqBGQIsLfC2fmlkrgacRhLjK8bWtqoqN HZZHmMNvJ0VRu2+B9ykdOYMG0/XDa8zjNZCc6s80VPFpCmNMdXazMjXAoxml1iqfYKuo XvOgOVExLwLj2BESQ93MQeAVkDZ1vMbLEpQWLUwmajiGFNZB/rRG2dbZ9tcddqLxfWUz VEW4yFYzV2DY7/gHCfm5nBPBeSvPVF08v//QTLUqmf9neGZaS8J24V2+PXuwDwUN92SG SBPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/gQTr+Hd36TNgwBSquvgJuzzB/CqHEhhWxzKQDBdIKs=; b=fLgGDLcYqbS/kd3UiDMUgJzDbhPM0OtnRvfqp3mILH9J8b+coAosIR4P97nArBXz06 eaKoz9s3vrqh97Cs8VBLDCExU/uOOZWPoeV7Dy614tnUnb3/1M1sdeByYPbGUKl9edLE BAFy7EFrVBQNNDGbpIHwp8Pm/94cAOnDwkEnsgEtYfHqWWYQphyRapyzKX2ktSrijR46 DQvRjQVoEKNC2efsgYWJZm44qIpotUmEYBdXtiG4QB+00fmPtkTIwb7QUKkJFramhCaW i+WUkK0doAd9SgvrMXikugycHI6cWUbEkN9Klp2ffogxEhJ6C/nZabsTkv/3oX5Vi81U 38eA== X-Gm-Message-State: APt69E3eJ3Gg9uAST58+WYCSMN0yB8DH4XQbbzctYq6KIFdkNC419GwC 8qVr7VYyPHzTh2tUOUD8JsoWC5NOLIW6gpUYcin+pw== X-Google-Smtp-Source: ADUXVKL0u2fRy59v7l1qaYh4e5ExwbxCyBhletoF3HBItlj6IrNOQnVnL05kVnmQVeL69C2QroFZd6Cpv4OxiRGd8qg= X-Received: by 2002:a2e:9a44:: with SMTP id k4-v6mr12760339ljj.17.1529469710277; Tue, 19 Jun 2018 21:41:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147645 Archived-At: 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