From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcus Newsgroups: gmane.emacs.bugs Subject: bug#21612: 24.5; Configuration variable to delete auto-save file when intentionally killing buffer Date: Sat, 3 Oct 2015 16:51:12 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1141b65a57c83d052134698c X-Trace: ger.gmane.org 1443890249 19374 80.91.229.3 (3 Oct 2015 16:37:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Oct 2015 16:37:29 +0000 (UTC) To: 21612@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 03 18:37:19 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZiPoB-0002bG-G9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 18:37:15 +0200 Original-Received: from localhost ([::1]:39270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiPo5-0000Gg-K5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 12:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiPnz-0000GU-T9 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 12:37:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiPny-0005se-G3 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 12:37:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiPny-0005sL-DS for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 12:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZiPnx-0006yq-V7 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 12:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Oct 2015 16:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21612 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144389017226774 (code B ref -1); Sat, 03 Oct 2015 16:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Oct 2015 16:36:12 +0000 Original-Received: from localhost ([127.0.0.1]:53866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiPn9-0006xl-JA for submit@debbugs.gnu.org; Sat, 03 Oct 2015 12:36:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46328) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiO9e-0004Yu-Se for submit@debbugs.gnu.org; Sat, 03 Oct 2015 10:51:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiO9c-00018y-RP for submit@debbugs.gnu.org; Sat, 03 Oct 2015 10:51:18 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiO9c-00018s-OP for submit@debbugs.gnu.org; Sat, 03 Oct 2015 10:51:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiO9b-0000XT-C1 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 10:51:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiO9Z-00017a-Oq for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 10:51:15 -0400 Original-Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:35685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiO9Z-00017R-IR for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 10:51:13 -0400 Original-Received: by ioiz6 with SMTP id z6so147268564ioi.2 for ; Sat, 03 Oct 2015 07:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=BbxXEas+cDhNXKhAwEyGKK4VYljLfAkG2CbAO6obg24=; b=wa9zmRqFyWHwVB7DO8sIip1HZAXnfZQwRC5x8pkJIvXesK5cUQhlLmx7rX0NR0n+iQ 3WPuD8hMv+T9VGYw4DIiKBUIBBxCvhUyGehYeCJ5xsiEujEc96Qfqz7jtiaph8j4znUu /IrHsiHWnG5LKKvhjmS4OwbpljmXwWWrtiu/+NMf5XE8M1eby2DtIvwfCd1Gq2P0xTYc IQtob/8qg5vHFl3naSBU4NFUEeYPBxTdSVR+//AE6UlPM+ZWFSczsuJ1XnwuwJwBkqul gsAi9/TJ8LDzjp9kJpsg0PcQRB5InBMg2+Wam6/zl3Z7yrImKGvpIY4J6dyuWIpGm4Z/ G2Vw== X-Received: by 10.107.162.136 with SMTP id l130mr20396065ioe.86.1443883872925; Sat, 03 Oct 2015 07:51:12 -0700 (PDT) Original-Received: by 10.64.107.39 with HTTP; Sat, 3 Oct 2015 07:51:12 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sat, 03 Oct 2015 12:36:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107271 Archived-At: --001a1141b65a57c83d052134698c Content-Type: text/plain; charset=UTF-8 Recipe for recreating: Start Emacs: `emacs -Q' Visit a file, e.g.: `C-x C-f RET test-file RET'. Change the file, e.g.: `M-> Will this auto-save?' Trigger auto-save, e.g. by idling for 30 seconds Quit Emacs: `C-x C-c RET' Don't save the file: `n yes RET' Start Emacs again: `emacs -Q' Visit the same file, e.g.: `C-x C-f RET test-file RET' Message "test-file has auto save data; consider M-x recover-this-file" appears. Since the buffer was killed intentionally, shouldn't it be possible to configure Emacs such that the auto save file will be deleted? This might even be useful default behavior. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-09-10 on foutrelis Windowing system distributor `The X.Org Foundation', version 11.0.11702000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_DK.UTF-8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: shell-dirtrack-mode: t evil-mode: t global-undo-tree-mode: t undo-tree-mode: t evil-local-mode: t tooltip-mode: t electric-indent-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 buffer-read-only: t line-number-mode: t transient-mark-mode: (only . t) Recent messages: Making completion list... [2 times] user-error: Previous command was not evil-repeat: exit-minibuffer byte-code: Beginning of line [2 times] Making completion list... [3 times] Type C-w C-o to delete the help window. Making completion list... [4 times] Making completion list... Buffer is read-only: # call-interactively: Buffer is read-only: # Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr jka-compr shell pcomplete comint ansi-color emacsbug message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode cus-edit cus-start cus-load wid-edit evil evil-integration undo-tree diff evil-maps evil-commands evil-command-window evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core advice help-fns evil-common windmove thingatpt rect evil-digraphs evil-vars ring edmacro kmacro cl-loaddefs cl-lib info easymenu package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 174790 18817) (symbols 48 25241 0) (miscs 40 116 258) (strings 32 34539 6257) (string-bytes 1 914163) (vectors 16 18967) (vector-slots 8 478501 7318) (floats 8 83 350) (intervals 56 841 11) (buffers 960 16) (heap 1024 33073 1567)) --001a1141b65a57c83d052134698c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Recipe for recreating:
Start Emacs: `emacs = -Q'
Visit a file, e.g.: `C-x C-f RET test-file RET'.<= /div>
Change the file, e.g.: `M-> Will this auto-save?'
Trigger auto-save, e.g. by idling for 30 seconds
Quit Emacs: `C= -x C-c RET'
Don't save the file: `n yes RET'
Start Emacs again: `emacs -Q'
Visit the same file, e.g.: `C= -x C-f RET test-file RET'
Message "test-file has auto sa= ve data; consider M-x recover-this-file"
appears.
=
Since the buffer was killed intentionally, shouldn't it = be possible to
configure Emacs such that the auto save file will = be deleted?
This might even be useful default behavior.


In GNU Emacs 24.5.1 (x86_64-unknown-linux-gn= u, GTK+ Version 3.16.6)
=C2=A0of 2015-09-10 on foutrelis
Windowing system distributor `The X.Org Foundation', version 11.0.117= 02000
System Description: Arch Linux

Configured using:
= =C2=A0`configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/li= b
=C2=A0--localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft=
=C2=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -= fstack-protector-strong
=C2=A0--param=3Dssp-buffer-size=3D4' = CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2
=C2=A0LDFLAGS=3D-Wl,-O1,--sort-c= ommon,--as-needed,-z,relro'

Important settings= :
=C2=A0 value of $LANG: en_DK.UTF-8
=C2=A0 locale-codi= ng-system: utf-8-unix

Major mode: Info
<= br>
Minor modes in effect:
=C2=A0 shell-dirtrack-mode: = t
=C2=A0 evil-mode: t
=C2=A0 global-undo-tree-mode: t
=C2=A0 undo-tree-mode: t
=C2=A0 evil-local-mode: t
=
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-mode: t
<= div>=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
= =C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mo= de: t
=C2=A0 buffer-read-only: t
=C2=A0 line-number-mod= e: t
=C2=A0 transient-mark-mode: (only . t)

<= div>Recent messages:
Making completion list... [2 times]
user-error: Previous command was not evil-repeat: exit-minibufferbyte-code: Beginning of line [2 times]
Making completion list.= .. [3 times]
Type C-w C-o to delete the help window.
Ma= king completion list... [4 times]

Making completio= n list...

Buffer is read-only: #<buffer *Help*&= gt;
call-interactively: Buffer is read-only: #<buffer *info*&g= t;

Load-path shadows:
None found.
<= div>
Features:
(shadow sort gnus-util mail-extr jka= -compr shell pcomplete comint
ansi-color emacsbug message idna fo= rmat-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-p= arse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc= 2045 ietf-drums mm-util mail-prsvr
mail-utils help-mode cus-edit = cus-start cus-load wid-edit evil
evil-integration undo-tree diff = evil-maps evil-commands
evil-command-window evil-types evil-searc= h evil-ex evil-macros
evil-repeat evil-states evil-core advice he= lp-fns evil-common windmove
thingatpt rect evil-digraphs evil-var= s ring edmacro kmacro cl-loaddefs
cl-lib info easymenu package ep= g-config time-date tooltip electric
uniquify ediff-hook vc-hooks = lisp-float-type mwheel x-win x-dnd tool-bar
dnd fontset image reg= exp-opt fringe tabulated-list newcomment lisp-mode
prog-mode regi= ster page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-= lock font-lock syntax facemenu font-core frame cham georgian
utf-= 8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japa= nese hebrew greek romanian slovak czech european ethiopic indian
= cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
=
minibuffer nadvice loaddefs button faces cus-face macroexp files
=
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-proces= s
dbusbind gfilenotify dynamic-setting system-font-setting
<= div>font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
=

Memory information:
((conses 16 174790 18817)=
=C2=A0(symbols 48 25241 0)
=C2=A0(miscs 40 116 258)
=C2=A0(strings 32 34539 6257)
=C2=A0(string-bytes 1 91416= 3)
=C2=A0(vectors 16 18967)
=C2=A0(vector-slots 8 47850= 1 7318)
=C2=A0(floats 8 83 350)
=C2=A0(intervals 56 841= 11)
=C2=A0(buffers 960 16)
=C2=A0(heap 1024 33073 1567= ))

--001a1141b65a57c83d052134698c--