summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2020-08-26 12:37:24 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-26 12:37:24 +0200
commit7e809b9ef7b8e07851525ffb9c03a02c5ea6af82 (patch)
tree121d82ee063c4607265b0b63188b8c878f98778d /lisp/files.el
parentfa3959f5cbd2c0c4642999bde987ba852373e0dd (diff)
downloademacs-7e809b9ef7b8e07851525ffb9c03a02c5ea6af82.tar.gz
Don't recommend redefining auto-save filename functions
* doc/lispref/backups.texi (Auto-Saving): Document auto-save-file-name-transforms. * lisp/files.el (make-auto-save-file-name) (auto-save-file-name-p): Remove suggestion to redefine for customization (bug#34911).
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 9a20ad41bae..e08f0f0134c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -6483,7 +6483,7 @@ Also rename any existing auto save file, if it was made in this session."
(defun make-auto-save-file-name ()
"Return file name to use for auto-saves of current buffer.
Does not consider `auto-save-visited-file-name' as that variable is checked
-before calling this function. You can redefine this for customization.
+before calling this function.
See also `auto-save-file-name-p'."
(if buffer-file-name
(let ((handler (find-file-name-handler buffer-file-name
@@ -6590,7 +6590,8 @@ See also `auto-save-file-name-p'."
(defun auto-save-file-name-p (filename)
"Return non-nil if FILENAME can be yielded by `make-auto-save-file-name'.
-FILENAME should lack slashes. You can redefine this for customization."
+FILENAME should lack slashes.
+See also `make-auto-save-file-name'."
(string-match "\\`#.*#\\'" filename))
(defun wildcard-to-regexp (wildcard)