diff options
author | Juanma Barranquero <[email protected]> | 2013-07-01 18:54:37 +0200 |
---|---|---|
committer | Juanma Barranquero <[email protected]> | 2013-07-01 18:54:37 +0200 |
commit | 24827db9c4dd4597715958a3f6178cd2173251e1 (patch) | |
tree | 31b6e6cb3e61c08e945a2396fa2790d2073966ab /src/emacs.c | |
parent | f90ac821483e5df45911279b6a431f47a069847b (diff) |
src/emacs.c (Fkill_emacs): Expand Vauto_save_list_file_name before unlinking it.
Fixes: debbugs:14691
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 13f6d117eb..77ae977b37 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1864,7 +1864,11 @@ all of which are called before Emacs is actually killed. */) kill it because we are exiting Emacs deliberately (not crashing). Do it after shut_down_emacs, which does an auto-save. */ if (STRINGP (Vauto_save_list_file_name)) - unlink (SSDATA (Vauto_save_list_file_name)); + { + Lisp_Object listfile; + listfile = Fexpand_file_name (Vauto_save_list_file_name, Qnil); + unlink (SSDATA (listfile)); + } if (INTEGERP (arg)) exit_code = (XINT (arg) < 0 |