diff options
| author | Juanma Barranquero | 2013-07-01 18:54:37 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2013-07-01 18:54:37 +0200 |
| commit | 24827db9c4dd4597715958a3f6178cd2173251e1 (patch) | |
| tree | 31b6e6cb3e61c08e945a2396fa2790d2073966ab /src | |
| parent | f90ac821483e5df45911279b6a431f47a069847b (diff) | |
| download | emacs-24827db9c4dd4597715958a3f6178cd2173251e1.tar.gz emacs-24827db9c4dd4597715958a3f6178cd2173251e1.zip | |
src/emacs.c (Fkill_emacs): Expand Vauto_save_list_file_name before unlinking it.
Fixes: debbugs:14691
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/emacs.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8b3f98fe9f3..23e9502e3b5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-07-01 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * emacs.c (Fkill_emacs): Expand Vauto_save_list_file_name before | ||
| 4 | unlinking it (bug#14691). | ||
| 5 | |||
| 1 | 2013-06-30 Michal Nazarewicz <mina86@mina86.com> | 6 | 2013-06-30 Michal Nazarewicz <mina86@mina86.com> |
| 2 | 7 | ||
| 3 | * buffer.c (FKill_buffer): Run `kill-buffer-query-functions' | 8 | * 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. */) | |||
| 1864 | kill it because we are exiting Emacs deliberately (not crashing). | 1864 | kill it because we are exiting Emacs deliberately (not crashing). |
| 1865 | Do it after shut_down_emacs, which does an auto-save. */ | 1865 | Do it after shut_down_emacs, which does an auto-save. */ |
| 1866 | if (STRINGP (Vauto_save_list_file_name)) | 1866 | if (STRINGP (Vauto_save_list_file_name)) |
| 1867 | unlink (SSDATA (Vauto_save_list_file_name)); | 1867 | { |
| 1868 | Lisp_Object listfile; | ||
| 1869 | listfile = Fexpand_file_name (Vauto_save_list_file_name, Qnil); | ||
| 1870 | unlink (SSDATA (listfile)); | ||
| 1871 | } | ||
| 1868 | 1872 | ||
| 1869 | if (INTEGERP (arg)) | 1873 | if (INTEGERP (arg)) |
| 1870 | exit_code = (XINT (arg) < 0 | 1874 | exit_code = (XINT (arg) < 0 |