From: Stefan Kangas Date: Sun, 30 Jun 2024 23:44:38 +0000 (+0200) Subject: Backport file backup FAQ item to Emacs <28 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=585cdecbd5ab779c3d6950aecca56154870466c2;p=emacs.git Backport file backup FAQ item to Emacs <28 * doc/misc/efaq.texi (Not writing files to the current directory): Backport recommendation to Emacs 27 or older. Problem reported by David Hedlund . (cherry picked from commit 9d62dbc1f798f65d480c6b8e6255a33e124995d0) --- diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 89212119f88..7dc8cb26409 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi @@ -2922,8 +2922,9 @@ For instance, to write all these things to @file{~/.emacs.d/aux/}: @lisp -(setq lock-file-name-transforms - '(("\\`/.*/\\([^/]+\\)\\'" "~/.emacs.d/aux/\\1" t))) +(when (>= emacs-major-version 28) + (setq lock-file-name-transforms + '(("\\`/.*/\\([^/]+\\)\\'" "~/.emacs.d/aux/\\1" t)))) (setq auto-save-file-name-transforms '(("\\`/.*/\\([^/]+\\)\\'" "~/.emacs.d/aux/\\1" t))) (setq backup-directory-alist