diff options
| author | Eli Zaretskii | 2017-07-09 20:35:57 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-07-09 20:35:57 +0300 |
| commit | 0cff089ec80f7b4cc6359718c791942f0f4079bf (patch) | |
| tree | 3b39a98d82ae04c54b420d5ee5290591c4f1fdc2 | |
| parent | c6e94f894bd965c2be47c5a4d79498b48e8b94e0 (diff) | |
| download | emacs-0cff089ec80f7b4cc6359718c791942f0f4079bf.tar.gz emacs-0cff089ec80f7b4cc6359718c791942f0f4079bf.zip | |
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.
| -rw-r--r-- | lisp/files.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 06f49bba23c..2f3efa33c28 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -434,8 +434,11 @@ and toggle it if ARG is `toggle'." | |||
| 434 | (not (and buffer-auto-save-file-name | 434 | (not (and buffer-auto-save-file-name |
| 435 | auto-save-visited-file-name))))))) | 435 | auto-save-visited-file-name))))))) |
| 436 | 436 | ||
| 437 | ;; The 'set' part is so we don't get a warning for using this variable | ||
| 438 | ;; above, while still catching code that _sets_ the variable to get | ||
| 439 | ;; the same effect as the new auto-save-visited-mode. | ||
| 437 | (make-obsolete-variable 'auto-save-visited-file-name 'auto-save-visited-mode | 440 | (make-obsolete-variable 'auto-save-visited-file-name 'auto-save-visited-mode |
| 438 | "Emacs 26.1") | 441 | "Emacs 26.1" 'set) |
| 439 | 442 | ||
| 440 | (defcustom save-abbrevs t | 443 | (defcustom save-abbrevs t |
| 441 | "Non-nil means save word abbrevs too when files are saved. | 444 | "Non-nil means save word abbrevs too when files are saved. |