GNU bug report logs - #14691
24.3; auto-save-list

Previous Next

Package: emacs;

Reported by: João Guerra <joca.bt <at> gmail.com>

Date: Sat, 22 Jun 2013 21:49:01 UTC

Severity: minor

Found in version 24.3

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14691 in the body.
You can then email your comments to 14691 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14691; Package emacs. (Sat, 22 Jun 2013 21:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to João Guerra <joca.bt <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 22 Jun 2013 21:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: João Guerra <joca.bt <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; auto-save-list
Date: Sat, 22 Jun 2013 22:33:21 +0100
[Message part 1 (text/plain, inline)]
Emacs is not deleting the auto-save-list file when closing. This happens
only if I set the auto-save-list file name with the
auto-save-list-file-name variable instead of with the
auto-save-list-file-prefix.

In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.7) --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include
 -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
 -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'

Important settings:
  value of $LANG: PTG
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  global-undo-tree-mode: t
  undo-tree-mode: t
  cua-mode: t
  autopair-global-mode: t
  autopair-mode: t
  electric-indent-mode: t
  global-hl-line-mode: t
  global-linum-mode: t
  linum-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  ido-everywhere: t
  recentf-mode: t
  savehist-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14691; Package emacs. (Wed, 26 Jun 2013 07:28:02 GMT) Full text and rfc822 format available.

Message #8 received at 14691 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: João Guerra <joca.bt <at> gmail.com>
Cc: 14691 <at> debbugs.gnu.org
Subject: Re: bug#14691: 24.3; auto-save-list
Date: Wed, 26 Jun 2013 03:27:24 -0400
João Guerra wrote:

> Emacs is not deleting the auto-save-list file when closing. This happens
> only if I set the auto-save-list file name with the
> auto-save-list-file-name variable instead of with the
> auto-save-list-file-prefix.

I can't reproduce on GNU/Linux this with:

emacs-24.3 -Q --eval '(setq auto-save-list-file-name "/home/gm/FOO")' ~/bar &

If I make some changes to ~/bar and wait for it to be auto-saved, ~/FOO
is created. If I save bar and exit Emacs with C-x C-c, ~/FOO is removed.

Do you have a recipe starting from emacs -Q?

> In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN
> Windowing system distributor `Microsoft Corp.', version 6.1.7601




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14691; Package emacs. (Thu, 27 Jun 2013 21:19:01 GMT) Full text and rfc822 format available.

Message #11 received at 14691 <at> debbugs.gnu.org (full text, mbox):

From: João Guerra <joca.bt <at> gmail.com>
To: 14691 <at> debbugs.gnu.org
Subject: Re: bug#14691: Acknowledgement (24.3; auto-save-list)
Date: Thu, 27 Jun 2013 22:17:53 +0100
[Message part 1 (text/plain, inline)]
Minimal working .emacs example

(defconst backups-dir "~/.emacs.d/backups/")

;; auto-save
(setq auto-save-default t
      auto-save-interval 0
      auto-save-timeout 5
      delete-auto-save-files t
      auto-save-list-file-name (concat backups-dir (format ".auto-save-%s"
(emacs-pid)))
      auto-save-file-name-transforms `((".*" ,backups-dir t)))


I run Emacs 24.3 on Windows 7 x64 with "runemacs.exe"
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14691; Package emacs. (Fri, 28 Jun 2013 01:11:02 GMT) Full text and rfc822 format available.

Message #14 received at 14691 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: João Guerra <joca.bt <at> gmail.com>
Cc: 14691 <at> debbugs.gnu.org
Subject: Re: bug#14691: Acknowledgement (24.3; auto-save-list)
Date: Thu, 27 Jun 2013 21:10:26 -0400
João Guerra wrote:

> Minimal working .emacs example

Thanks. My minimal example would be:

  (setq auto-save-list-file-name "~/SAVE")

> (defconst backups-dir "~/.emacs.d/backups/")

Use (expand-file-name "~/.emacs.d/backups/") and it should work.

The issue is that we use

   unlink (SSDATA (Vauto_save_list_file_name));

and unlink does not understand the "~" construct.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14691; Package emacs. (Sat, 29 Jun 2013 20:11:01 GMT) Full text and rfc822 format available.

Message #17 received at 14691 <at> debbugs.gnu.org (full text, mbox):

From: João Guerra <joca.bt <at> gmail.com>
To: 14691 <at> debbugs.gnu.org
Subject: Re: bug#14691: Acknowledgement (24.3; auto-save-list)
Date: Sat, 29 Jun 2013 21:10:09 +0100
[Message part 1 (text/plain, inline)]
Thanks, that solves the problem.
Sorry for wasting your time.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14691; Package emacs. (Sat, 29 Jun 2013 20:36:02 GMT) Full text and rfc822 format available.

Message #20 received at 14691 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: João Guerra <joca.bt <at> gmail.com>
Cc: 14691 <at> debbugs.gnu.org
Subject: Re: bug#14691: Acknowledgement (24.3; auto-save-list)
Date: Sat, 29 Jun 2013 16:35:22 -0400
João Guerra wrote:

> Thanks, that solves the problem.
> Sorry for wasting your time.

No, it's an Emacs bug that we should fix. Thank you for reporting it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14691; Package emacs. (Sat, 29 Jun 2013 21:21:02 GMT) Full text and rfc822 format available.

Message #23 received at 14691 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: João Guerra <joca.bt <at> gmail.com>, 14691 <at> debbugs.gnu.org
Subject: Re: bug#14691: Acknowledgement (24.3; auto-save-list)
Date: Sat, 29 Jun 2013 23:19:51 +0200
On Sat, Jun 29, 2013 at 10:35 PM, Glenn Morris <rgm <at> gnu.org> wrote:

> No, it's an Emacs bug that we should fix.

Presumably is nothing harder than

=== modified file 'src/emacs.c'
--- src/emacs.c 2013-06-24 00:31:31 +0000
+++ src/emacs.c 2013-06-29 21:18:32 +0000
@@ -1864,7 +1864,11 @@
      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




Reply sent to Juanma Barranquero <lekktu <at> gmail.com>:
You have taken responsibility. (Mon, 01 Jul 2013 16:58:02 GMT) Full text and rfc822 format available.

Notification sent to João Guerra <joca.bt <at> gmail.com>:
bug acknowledged by developer. (Mon, 01 Jul 2013 16:58:03 GMT) Full text and rfc822 format available.

Message #28 received at 14691-done <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: João Guerra <joca.bt <at> gmail.com>,
 14691-done <at> debbugs.gnu.org
Subject: Re: bug#14691: Acknowledgement (24.3; auto-save-list)
Date: Mon, 1 Jul 2013 18:56:16 +0200
On Sat, Jun 29, 2013 at 11:19 PM, Juanma Barranquero <lekktu <at> gmail.com> wrote:

> Presumably is nothing harder than
>
> === modified file 'src/emacs.c'
> --- src/emacs.c 2013-06-24 00:31:31 +0000
> +++ src/emacs.c 2013-06-29 21:18:32 +0000

I've commited this in revno:113246




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 30 Jul 2013 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 293 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.