diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 7ab9731ff8f..93b3d48f6f1 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi @@ -2932,8 +2932,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