diff options
| author | Noam Postavsky <npostavs@gmail.com> | 2020-08-26 12:37:24 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-26 12:37:24 +0200 |
| commit | 7e809b9ef7b8e07851525ffb9c03a02c5ea6af82 (patch) | |
| tree | 121d82ee063c4607265b0b63188b8c878f98778d /lisp/files.el | |
| parent | fa3959f5cbd2c0c4642999bde987ba852373e0dd (diff) | |
| download | emacs-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.el | 5 |
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) |
