GNU bug report logs - #39563
default location of backup files

Previous Next

Package: emacs;

Reported by: Pedro Moreira <pedro.moreira <at> ipbeja.pt>

Date: Tue, 11 Feb 2020 14:42:04 UTC

Severity: normal

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Pedro Moreira <pedro.moreira <at> ipbeja.pt>
Cc: 39563 <at> debbugs.gnu.org
Subject: bug#39563: default location of backup files
Date: Mon, 30 Aug 2021 03:22:06 +0200
Pedro Moreira <pedro.moreira <at> ipbeja.pt> writes:

> if a user edits a php file using emacs directly at the webserver,
> emacs automatically saves a temp file at the same location, for
> example the user opens index.php, emacs stores a copy index.php~.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

You can make Emacs save backup files somewhere else, like this, for
instance:

(setq backup-directory-alist
      '((".*" . "~/.emacs.d/aux/")))

While it's a concern that you could expose data if you're editing your
running php files directly, I don't there's anything much Emacs can do
to auto-detect that.  So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 321 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.