From: Juanma Barranquero Date: Mon, 1 Jul 2013 16:54:37 +0000 (+0200) Subject: src/emacs.c (Fkill_emacs): Expand Vauto_save_list_file_name before unlinking it. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1965 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=24827db9c4dd4597715958a3f6178cd2173251e1;p=emacs.git src/emacs.c (Fkill_emacs): Expand Vauto_save_list_file_name before unlinking it. Fixes: debbugs:14691 --- diff --git a/src/ChangeLog b/src/ChangeLog index 8b3f98fe9f3..23e9502e3b5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-07-01 Juanma Barranquero + + * emacs.c (Fkill_emacs): Expand Vauto_save_list_file_name before + unlinking it (bug#14691). + 2013-06-30 Michal Nazarewicz * buffer.c (FKill_buffer): Run `kill-buffer-query-functions' diff --git a/src/emacs.c b/src/emacs.c index 13f6d117ebc..77ae977b37c 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