GNU bug report logs - #14512
buffer-offer-save does not affect kill-buffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: E Sabof <esabof@HIDDEN>; dated Thu, 30 May 2013 13:21:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 14512 <at> debbugs.gnu.org:


Received: (at 14512) by debbugs.gnu.org; 31 May 2013 00:19:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 20:19:06 2013
Received: from localhost ([127.0.0.1]:43346 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UiD3i-0003VC-B6
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 20:19:06 -0400
Received: from mail-qc0-f172.google.com ([209.85.216.172]:48989)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <esabof@HIDDEN>) id 1UiD3g-0003UR-PW
	for 14512 <at> debbugs.gnu.org; Thu, 30 May 2013 20:19:05 -0400
Received: by mail-qc0-f172.google.com with SMTP id z1so504865qcx.3
	for <14512 <at> debbugs.gnu.org>; Thu, 30 May 2013 17:17:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=bpcmqi79hgHhpPCprDM3OS0WLcA2nObCaCGG56QQn9U=;
	b=Nk7cvRHZpGG30djmdNPIev3f6yDw5dkcJUAxUp1fnxHwNHcENQ9aQVsLmPfOffa/PW
	J8cQg4xZQLuuOeooTNJ+kxniz63wyoOVu2y8AMAozdRo4djLFeKas1Bsix6zfAiVW6QN
	NcGAG95B7WmDAPtv+iYFVjiVvh+faal2C/gi//9PwWL1f2KqCKvDUTQ11CCZN66EFHp6
	0m2TpTTQgzvQB3UCioMZnj0AY6jFX0qLPngE0YrravjKGb5MivH/M4fT5y+kQ2aDSQyV
	eIm+6nmtVjZvvfEe0LlZTf+zC7bm7+N9qzUKJBcu07BKI9o0n64hAfoGb73//a0aHnyw
	9/WA==
MIME-Version: 1.0
X-Received: by 10.224.34.198 with SMTP id m6mr8163871qad.39.1369959447398;
	Thu, 30 May 2013 17:17:27 -0700 (PDT)
Received: by 10.49.18.162 with HTTP; Thu, 30 May 2013 17:17:27 -0700 (PDT)
In-Reply-To: <gx61y0dpyy.fsf@HIDDEN>
References: <CAEp6DybhwK+MbLX_+XOhXQ9NHy3iATaKHqft-+n1PqMAr1dB_A@HIDDEN>
	<CAEp6DyZ_iALbxWi1tWtbh1ObtafPubPjip7_KcjA7hJLBnRRXw@HIDDEN>
	<87hahk8hkp.fsf@HIDDEN>
	<CAEp6DybPNvOgYed3TiaCeVdr9+9=Hj7GKaYcnxj3BXW65d4L=g@HIDDEN>
	<gx61y0dpyy.fsf@HIDDEN>
Date: Fri, 31 May 2013 01:17:27 +0100
Message-ID: <CAEp6DyaXK4CionarDuCzL4M0iPbu8xYhw-o-hq2qBrA+2PwNGw@HIDDEN>
Subject: Re: bug#14512: 24,3; buffer-offer-save doesn't seem to have any effect
From: E Sabof <esabof@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Content-Type: multipart/alternative; boundary=20cf3074b7b038115204ddf88a93
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 14512
Cc: 14512 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

--20cf3074b7b038115204ddf88a93
Content-Type: text/plain; charset=ISO-8859-1

I no longer use it much, since I create/kill temporary buffers quite often.
But this is the default behavior in most programs, and I suspect many
people would want to change it. My 1 year ago self included.

On second thought, there might be a case for prompting for save only on
emacs exit, but I think it would be more natural if there was a separate
switch to do that, and it was responsible for all

(and (buffer-modified-p)
     (or (buffer-file-name)
         buffer-offer-save))

buffers.

On a related note, I get the impression that the prompt being hard coded is
a remnant from times when kill-buffer-query-functions didn't exist.

Evgeni



On Fri, May 31, 2013 at 12:09 AM, Glenn Morris <rgm@HIDDEN> wrote:

>
> If you want Emacs to
>
> 1) offer to save a buffer on exit
> 2) offer to save a buffer on C-x k
>
> then why not simply make that buffer visit a file?
>
> Because you also probably want
>
> 3) some kind of auto-save in case your computer dies while you are
> editing the buffer
>

--20cf3074b7b038115204ddf88a93
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I no longer use it much, since I create/kill temporary buf=
fers quite often. But this is the default behavior in most programs, and I =
suspect many people would want to change it. My 1 year ago self included.<d=
iv>
<br></div><div>On second thought, there might be a case for prompting for s=
ave only on emacs exit, but I think it would be more natural if there was a=
 separate switch to do that, and it was responsible for all</div><div><br>
</div><div><div>(and (buffer-modified-p)=A0</div><div>=A0 =A0 =A0(or (buffe=
r-file-name)=A0</div><div>=A0 =A0 =A0 =A0 =A0buffer-offer-save))</div></div=
><div><br></div><div>buffers.</div><div><br></div><div>On a related note, I=
 get the impression that the prompt being hard coded is a remnant from time=
s when=A0kill-buffer-query-functions didn&#39;t exist.</div>
<div><br></div><div>Evgeni</div><div><br></div></div><div class=3D"gmail_ex=
tra"><br><br><div class=3D"gmail_quote">On Fri, May 31, 2013 at 12:09 AM, G=
lenn Morris <span dir=3D"ltr">&lt;<a href=3D"mailto:rgm@HIDDEN" target=3D"=
_blank">rgm@HIDDEN</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><br>
If you want Emacs to<br>
<br>
1) offer to save a buffer on exit<br>
2) offer to save a buffer on C-x k<br>
<br>
then why not simply make that buffer visit a file?<br>
<br>
Because you also probably want<br>
<br>
3) some kind of auto-save in case your computer dies while you are<br>
editing the buffer<br>
</blockquote></div><br></div>

--20cf3074b7b038115204ddf88a93--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14512; Package emacs. Full text available.

Message received at 14512 <at> debbugs.gnu.org:


Received: (at 14512) by debbugs.gnu.org; 30 May 2013 23:14:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 19:14:10 2013
Received: from localhost ([127.0.0.1]:43243 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UiC2s-0000Kt-0w
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 19:14:10 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:52019 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UiC2q-0000Kn-GA
	for 14512 <at> debbugs.gnu.org; Thu, 30 May 2013 19:14:08 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UiC1M-0001VR-1p; Thu, 30 May 2013 19:12:36 -0400
From: Glenn Morris <rgm@HIDDEN>
To: E Sabof <esabof@HIDDEN>
Subject: Re: bug#14512: 24,3; buffer-offer-save doesn't seem to have any effect
References: <CAEp6DybhwK+MbLX_+XOhXQ9NHy3iATaKHqft-+n1PqMAr1dB_A@HIDDEN>
	<CAEp6DyZ_iALbxWi1tWtbh1ObtafPubPjip7_KcjA7hJLBnRRXw@HIDDEN>
	<87hahk8hkp.fsf@HIDDEN>
	<CAEp6DybPNvOgYed3TiaCeVdr9+9=Hj7GKaYcnxj3BXW65d4L=g@HIDDEN>
	<gx61y0dpyy.fsf@HIDDEN>
X-Spook: unclassified counter terrorism Compsec Fedayeen lynch
X-Ran: 3</ITXosUjM%x|`BJ|kYjo0D*3X&o|WE}Zi+G0^>cAgmH*,#ptq1yqtB`t)"OQYe2'Z>W.
X-Hue: blue
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 30 May 2013 19:12:35 -0400
In-Reply-To: <gx61y0dpyy.fsf@HIDDEN> (Glenn Morris's message of
	"Thu, 30 May 2013 19:09:57 -0400")
Message-ID: <ob1u8odpuk.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 14512
Cc: 14512 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -8.0 (--------)


Though having said that, personally I advise kill-buffer to prompt for
confirmation if buffer-offer-save is non-nil.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14512; Package emacs. Full text available.
Changed bug title to 'buffer-offer-save does not affect kill-buffer' from '24,3; buffer-offer-save doesn't seem to have any effect' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 14512 <at> debbugs.gnu.org:


Received: (at 14512) by debbugs.gnu.org; 30 May 2013 23:11:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 19:11:35 2013
Received: from localhost ([127.0.0.1]:43233 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UiC0M-0000DQ-IC
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 19:11:35 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:51987 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UiC0J-0000DI-GN
	for 14512 <at> debbugs.gnu.org; Thu, 30 May 2013 19:11:32 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UiByn-0000qY-Sj; Thu, 30 May 2013 19:09:58 -0400
From: Glenn Morris <rgm@HIDDEN>
To: E Sabof <esabof@HIDDEN>
Subject: Re: bug#14512: 24,3; buffer-offer-save doesn't seem to have any effect
References: <CAEp6DybhwK+MbLX_+XOhXQ9NHy3iATaKHqft-+n1PqMAr1dB_A@HIDDEN>
	<CAEp6DyZ_iALbxWi1tWtbh1ObtafPubPjip7_KcjA7hJLBnRRXw@HIDDEN>
	<87hahk8hkp.fsf@HIDDEN>
	<CAEp6DybPNvOgYed3TiaCeVdr9+9=Hj7GKaYcnxj3BXW65d4L=g@HIDDEN>
X-Spook: sniper digicash quiche Baranyi MIT-LL hackers rail gun
X-Ran: D5Q?q5],bj6&8!9*$A^Ki{T[q/fr<Qo2yH3+RE0>G+_.qP;U6noF!Jj34B<o/n#^BaGVqX
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 30 May 2013 19:09:57 -0400
In-Reply-To: <CAEp6DybPNvOgYed3TiaCeVdr9+9=Hj7GKaYcnxj3BXW65d4L=g@HIDDEN>
	(E. Sabof's message of "Thu, 30 May 2013 19:41:51 +0100")
Message-ID: <gx61y0dpyy.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -5.3 (-----)
X-Debbugs-Envelope-To: 14512
Cc: 14512 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -8.0 (--------)


If you want Emacs to 

1) offer to save a buffer on exit
2) offer to save a buffer on C-x k

then why not simply make that buffer visit a file?

Because you also probably want

3) some kind of auto-save in case your computer dies while you are
editing the buffer




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14512; Package emacs. Full text available.

Message received at 14512 <at> debbugs.gnu.org:


Received: (at 14512) by debbugs.gnu.org; 30 May 2013 18:43:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 14:43:32 2013
Received: from localhost ([127.0.0.1]:42753 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ui7ow-0003JI-S3
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 14:43:31 -0400
Received: from mail-qe0-f50.google.com ([209.85.128.50]:59534)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <esabof@HIDDEN>) id 1Ui7ot-0003Il-Kl
	for 14512 <at> debbugs.gnu.org; Thu, 30 May 2013 14:43:27 -0400
Received: by mail-qe0-f50.google.com with SMTP id x7so357047qeu.37
	for <14512 <at> debbugs.gnu.org>; Thu, 30 May 2013 11:41:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=IlURod+Q6ntgaWei3PAUo9Oh7Tm/rIjqButcmkvHKy4=;
	b=SVo6U9rrroaSXIVE7ccomqqM+27PkxkwvGA+NxifTXw/ahRNuXP/mySXAoQu//w/by
	HgmynrmX//F/oaxdQkz36/sfcgRoosxsYS83l426z00UgMq85CkhpUmi30fHkjt9p7Xq
	ZvW902WaIEXAYIU/eB7Suxq50Cxou7ZsXvCMKYPMmtZAoY/yrWQCO+KziU0u+V45J6t5
	KRaDo7wS27JuHYCEyHznslT8qY9sOMumecNwabAJ4vkIwRq08zba+Bhe6gQDYRm2S71/
	3LbNec4DjBqER/03RXucgpqGu/nPiVawbmpH/Vtjhgn5YYQjRLs9jTnRX3vXk4Fdp3oL
	cU3w==
MIME-Version: 1.0
X-Received: by 10.224.34.198 with SMTP id m6mr7486370qad.39.1369939311448;
	Thu, 30 May 2013 11:41:51 -0700 (PDT)
Received: by 10.49.18.162 with HTTP; Thu, 30 May 2013 11:41:51 -0700 (PDT)
In-Reply-To: <87hahk8hkp.fsf@HIDDEN>
References: <CAEp6DybhwK+MbLX_+XOhXQ9NHy3iATaKHqft-+n1PqMAr1dB_A@HIDDEN>
	<CAEp6DyZ_iALbxWi1tWtbh1ObtafPubPjip7_KcjA7hJLBnRRXw@HIDDEN>
	<87hahk8hkp.fsf@HIDDEN>
Date: Thu, 30 May 2013 19:41:51 +0100
Message-ID: <CAEp6DybPNvOgYed3TiaCeVdr9+9=Hj7GKaYcnxj3BXW65d4L=g@HIDDEN>
Subject: Re: bug#14512: 24,3; buffer-offer-save doesn't seem to have any effect
From: E Sabof <esabof@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Content-Type: multipart/alternative; boundary=20cf3074b7b005e48104ddf3dacc
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 14512
Cc: Kevin Rodgers <kevin.d.rodgers@HIDDEN>, 14512 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

--20cf3074b7b005e48104ddf3dacc
Content-Type: text/plain; charset=ISO-8859-1

It's not exactly the same. There is no connection between locked and saved
states.

Evgeni


On Thu, May 30, 2013 at 7:10 PM, Michael Heerdegen <michael_heerdegen@HIDDEN
> wrote:

> E Sabof <esabof@HIDDEN> writes:
>
> > Plus there is no easy way to protect a buffer from accidental
> > killing.
>
> There is a built-in package for exactly that: emacs-lock.el.
>
> Michael.
>

--20cf3074b7b005e48104ddf3dacc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">It&#39;s not exactly the same. There is no connection betw=
een locked and saved states.<div><br></div><div>Evgeni</div></div><div clas=
s=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Thu, May 30, 2013 a=
t 7:10 PM, Michael Heerdegen <span dir=3D"ltr">&lt;<a href=3D"mailto:michae=
l_heerdegen@HIDDEN" target=3D"_blank">michael_heerdegen@HIDDEN</a>&gt;</spa=
n> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">E Sabof &lt;<a href=3D"mai=
lto:esabof@HIDDEN">esabof@HIDDEN</a>&gt; writes:<br>
<br>
&gt; Plus there is no easy way to protect a buffer from accidental<br>
&gt; killing.<br>
<br>
</div>There is a built-in package for exactly that: emacs-lock.el.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Michael.<br>
</font></span></blockquote></div><br></div>

--20cf3074b7b005e48104ddf3dacc--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14512; Package emacs. Full text available.

Message received at 14512 <at> debbugs.gnu.org:


Received: (at 14512) by debbugs.gnu.org; 30 May 2013 18:12:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 14:12:01 2013
Received: from localhost ([127.0.0.1]:42703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ui7KS-00022G-L9
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 14:12:01 -0400
Received: from mout.web.de ([212.227.15.14]:63923)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <michael_heerdegen@HIDDEN>) id 1Ui7KQ-00021n-Fq
	for 14512 <at> debbugs.gnu.org; Thu, 30 May 2013 14:11:59 -0400
Received: from drachen.dragon ([89.204.139.124]) by smtp.web.de (mrweb101)
	with ESMTPSA (Nemesis) id 0M1X0v-1USNtq0ULx-00tMte;
	Thu, 30 May 2013 20:10:19 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: E Sabof <esabof@HIDDEN>
Subject: Re: bug#14512: 24,3; buffer-offer-save doesn't seem to have any effect
References: <CAEp6DybhwK+MbLX_+XOhXQ9NHy3iATaKHqft-+n1PqMAr1dB_A@HIDDEN>
	<CAEp6DyZ_iALbxWi1tWtbh1ObtafPubPjip7_KcjA7hJLBnRRXw@HIDDEN>
Date: Thu, 30 May 2013 20:10:14 +0200
In-Reply-To: <CAEp6DyZ_iALbxWi1tWtbh1ObtafPubPjip7_KcjA7hJLBnRRXw@HIDDEN>
	(E. Sabof's message of "Thu, 30 May 2013 15:43:00 +0100")
Message-ID: <87hahk8hkp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V02:K0:NcrBv0ZtxbM43HleanH5Inh2CFbeh90O0YRo+IM8ab/
	ZZsFVa9RCVh7eJqa9Zc29HHTST/d04p47EDmspK9wxSy+s/zqb
	it60rcbnCxEylnqAyRcbYTvxa8ox+Ro5FrX74mnRvzU59YW1NB
	ln8TRxbujnji1tZZ/JachHES2yBl/OxRFhZ9cQKKlgOXw/ne8E
	J9g2JIVLhUQCQ5sthzgfKHnUdcTmqT9V3HPwySjB1E=
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: 14512
Cc: kevin.d.rodgers@HIDDEN, 14512 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.0 (---)

E Sabof <esabof@HIDDEN> writes:

> Plus there is no easy way to protect a buffer from accidental
> killing.

There is a built-in package for exactly that: emacs-lock.el.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14512; Package emacs. Full text available.

Message received at 14512 <at> debbugs.gnu.org:


Received: (at 14512) by debbugs.gnu.org; 30 May 2013 14:44:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 10:44:40 2013
Received: from localhost ([127.0.0.1]:42361 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ui45n-0001mO-Cd
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 10:44:40 -0400
Received: from mail-qe0-f54.google.com ([209.85.128.54]:43175)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <esabof@HIDDEN>) id 1Ui45j-0001lu-Iy
	for 14512 <at> debbugs.gnu.org; Thu, 30 May 2013 10:44:38 -0400
Received: by mail-qe0-f54.google.com with SMTP id i11so165941qej.41
	for <14512 <at> debbugs.gnu.org>; Thu, 30 May 2013 07:43:00 -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=tFGEESDEH5qMlmx3CkQ+8kfava7t1YprYem4L9+L4Ws=;
	b=S+Bz0QfdB1OeQyQCQJbVOpjCmf//iGvir6TpdtOQ6qeZFzHrBm8l/08bNLP6QoRNe1
	byFx6QGDlRvswjAVfvlGueIiTu/sidjkboAIi84doh0MnSSqrBWsuSX+nH6RjFdOFAfu
	m2uJtHYVQnXPYGgbTjB8IsKi0bN/AsMvNAnS6xQpgSks5Sy+5flLF1oAtw/oiJtwBdCC
	CrM+4vHULmn429DP/Edq5G+7DmEhd/yoqVvqWILT5C/7U1ScvO82CKIQxmlZFW/dGdxQ
	VQ8Mfu5Vp5SWgPbhW04jJhjyPO6hl4CCTw2FnR8iRrJUO5UGXd46xkAo5rLUsCSLMn+s
	ZDJQ==
MIME-Version: 1.0
X-Received: by 10.224.164.205 with SMTP id f13mr6651642qay.16.1369924980360;
	Thu, 30 May 2013 07:43:00 -0700 (PDT)
Received: by 10.49.18.162 with HTTP; Thu, 30 May 2013 07:43:00 -0700 (PDT)
Date: Thu, 30 May 2013 15:43:00 +0100
Message-ID: <CAEp6DyZ_iALbxWi1tWtbh1ObtafPubPjip7_KcjA7hJLBnRRXw@HIDDEN>
Subject: bug#14512: 24,3; buffer-offer-save doesn't seem to have any effect
From: E Sabof <esabof@HIDDEN>
To: kevin.d.rodgers@HIDDEN, 14512 <at> debbugs.gnu.org
Content-Type: multipart/alternative; boundary=089e0158bac2d2c90b04ddf08370
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 14512
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

--089e0158bac2d2c90b04ddf08370
Content-Type: text/plain; charset=ISO-8859-1

> As documented: buffer-offer-save is consulted "on exit" i.e. by
> `save-buffers-kill-emacs' and `save-some-buffers'.

> The Elisp manual should be updated to also mention
`save-buffers-kill-terminal',
> since most users exit Emacs via `C-x C-c'.

In that case, might it be better to extend the behavior to kill-buffer? I
see little benefit in this third type of behavior. Plus there is no easy
way to protect a buffer from accidental killing.

Evgeni

--089e0158bac2d2c90b04ddf08370
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>&gt; As documented: buffer-offer-save is consulted &q=
uot;on exit&quot; i.e. by</div><div>&gt; `save-buffers-kill-emacs&#39; and =
`save-some-buffers&#39;.</div><div><br></div><div>&gt; The Elisp manual sho=
uld be updated to also mention `save-buffers-kill-terminal&#39;,</div>
<div>&gt; since most users exit Emacs via `C-x C-c&#39;.</div><div><br></di=
v><div>In that case, might it be better to extend the behavior to kill-buff=
er? I see little benefit in this third type of behavior. Plus there is no e=
asy way to protect a buffer from accidental killing.</div>
<div><br></div><div>Evgeni</div></div>

--089e0158bac2d2c90b04ddf08370--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14512; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 May 2013 14:06:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 10:06:16 2013
Received: from localhost ([127.0.0.1]:42295 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ui3Ud-00009Y-Ae
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 10:06:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59085)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Ui3UZ-00008o-FH
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 10:06:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Ui3Sx-0006jk-Nw
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 10:04:36 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-103.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD,
	USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:41908)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Ui3Sx-0006jV-DT
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 10:04:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42132)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Ui3Ss-0006xi-Qi
	for bug-gnu-emacs@HIDDEN; Thu, 30 May 2013 10:04:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Ui3Sn-0006eO-Qm
	for bug-gnu-emacs@HIDDEN; Thu, 30 May 2013 10:04:26 -0400
Received: from plane.gmane.org ([80.91.229.3]:54950)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Ui3Sn-0006eD-Ko
	for bug-gnu-emacs@HIDDEN; Thu, 30 May 2013 10:04:21 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Ui3Sm-0003SZ-DD
	for bug-gnu-emacs@HIDDEN; Thu, 30 May 2013 16:04:20 +0200
Received: from 70-59-7-113.hlrn.qwest.net ([70.59.7.113])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Thu, 30 May 2013 16:04:20 +0200
Received: from kevin.d.rodgers by 70-59-7-113.hlrn.qwest.net with local
	(Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Thu, 30 May 2013 16:04:20 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Kevin Rodgers <kevin.d.rodgers@HIDDEN>
Subject: Re: bug#14512: 24,3; buffer-offer-save doesn't seem to have any effect
Date: Thu, 30 May 2013 08:05:04 -0600
Lines: 19
Message-ID: <ko7m8k$bab$1@HIDDEN>
References: <CAEp6DybhwK+MbLX_+XOhXQ9NHy3iATaKHqft-+n1PqMAr1dB_A@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: 70-59-7-113.hlrn.qwest.net
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US;
	rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20
In-Reply-To: <CAEp6DybhwK+MbLX_+XOhXQ9NHy3iATaKHqft-+n1PqMAr1dB_A@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

On 5/30/13 7:18 AM, E Sabof wrote:
> Steps to reproduce:
> - emacs -Q
> - C-x b test RET
> - M-: (setq buffer-offer-save t)
> - write some text
> - C-x k RET
>
> The buffer is gone, but no prompt is shown.

As documented: buffer-offer-save is consulted "on exit" i.e. by
`save-buffers-kill-emacs' and `save-some-buffers'.

The Elisp manual should be updated to also mention `save-buffers-kill-terminal',
since most users exit Emacs via `C-x C-c'.

-- 
Kevin Rodgers
Denver, Colorado, USA





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14512; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 May 2013 13:20:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 09:20:28 2013
Received: from localhost ([127.0.0.1]:41822 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ui2mK-0006NR-BE
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 09:20:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44861)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <esabof@HIDDEN>) id 1Ui2mI-0006Mx-Ba
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 09:20:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esabof@HIDDEN>) id 1Ui2kZ-0006Qr-PR
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 09:18:51 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:35499)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esabof@HIDDEN>) id 1Ui2kZ-0006Ql-Jw
	for submit <at> debbugs.gnu.org; Thu, 30 May 2013 09:18:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56002)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esabof@HIDDEN>) id 1Ui2kQ-00067R-Dl
	for bug-gnu-emacs@HIDDEN; Thu, 30 May 2013 09:18:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esabof@HIDDEN>) id 1Ui2kH-0006CK-8c
	for bug-gnu-emacs@HIDDEN; Thu, 30 May 2013 09:18:29 -0400
Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:46321)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esabof@HIDDEN>) id 1Ui2kH-0006C8-50
	for bug-gnu-emacs@HIDDEN; Thu, 30 May 2013 09:18:21 -0400
Received: by mail-qa0-f52.google.com with SMTP id cr7so263460qab.18
	for <bug-gnu-emacs@HIDDEN>; Thu, 30 May 2013 06:18:20 -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=xFXkQqLe8Mh8bUI8rkUEwIjh6A+CipXIS8Q2k/K5S9o=;
	b=Mqb+uCbNqwsKN0bDkoZILuh+fJhM/oZl4hUkJM+zPkeStGljw6GG+WAZsy5BQRBLPO
	khSMfKS4CRyZ8VsSm9i8rpVdOhmLOvqvbCtRAepF4lqgIidHOyTua/iXvgAzc+QLz0E7
	SNCNkqKF1F/nCz1doa4YjhZHbEv1vgrlTWjRGDlH88XbN45/Iu5Ohj207rIm8tTuZEov
	2vPSRTDyMG3lVg1gNgBcP6izgnjgEjGoO7MbChk1/MaCOcHUGIY2UzJpolIw6veE7qMV
	UdyBN9xhBafQ1gJzvsJpR2O9v4A9rX2wLLgNOvg6I4qx1GcrNJGZFFi2purt8ZJ+9DVl
	qs5A==
MIME-Version: 1.0
X-Received: by 10.224.79.138 with SMTP id p10mr6619499qak.13.1369919900840;
	Thu, 30 May 2013 06:18:20 -0700 (PDT)
Received: by 10.49.18.162 with HTTP; Thu, 30 May 2013 06:18:20 -0700 (PDT)
Date: Thu, 30 May 2013 14:18:20 +0100
Message-ID: <CAEp6DybhwK+MbLX_+XOhXQ9NHy3iATaKHqft-+n1PqMAr1dB_A@HIDDEN>
Subject: 24,3; buffer-offer-save doesn't seem to have any effect
From: E Sabof <esabof@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary=047d7bf0de880f797204ddef555a
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.7 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

--047d7bf0de880f797204ddef555a
Content-Type: text/plain; charset=ISO-8859-1

Steps to reproduce:
- emacs -Q
- C-x b test RET
- M-: (setq buffer-offer-save t)
- write some text
- C-x k RET

The buffer is gone, but no prompt is shown.

Evgeni

--047d7bf0de880f797204ddef555a
Content-Type: text/html; charset=ISO-8859-1

<div dir="ltr">Steps to reproduce:<div>- emacs -Q</div><div>- C-x b test RET</div><div>- M-: (setq buffer-offer-save t)</div><div>- write some text</div><div>- C-x k RET</div><div><br></div><div>The buffer is gone, but no prompt is shown.</div>
<div><br></div><div>Evgeni</div></div>

--047d7bf0de880f797204ddef555a--




Acknowledgement sent to E Sabof <esabof@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14512; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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