[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 0cff089: Avoid compilation warning in files.el
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 0cff089: Avoid compilation warning in files.el |
Date: |
Sun, 9 Jul 2017 13:36:50 -0400 (EDT) |
branch: master
commit 0cff089ec80f7b4cc6359718c791942f0f4079bf
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Avoid compilation warning in files.el
* lisp/files.el (auto-save-visited-file-name): Avoid obsoletion
warning due to its use in auto-save-visited-mode.
---
lisp/files.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/files.el b/lisp/files.el
index 06f49bb..2f3efa3 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -434,8 +434,11 @@ and toggle it if ARG is `toggle'."
(not (and buffer-auto-save-file-name
auto-save-visited-file-name)))))))
+;; The 'set' part is so we don't get a warning for using this variable
+;; above, while still catching code that _sets_ the variable to get
+;; the same effect as the new auto-save-visited-mode.
(make-obsolete-variable 'auto-save-visited-file-name 'auto-save-visited-mode
- "Emacs 26.1")
+ "Emacs 26.1" 'set)
(defcustom save-abbrevs t
"Non-nil means save word abbrevs too when files are saved.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 0cff089: Avoid compilation warning in files.el,
Eli Zaretskii <=