From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#14512: 24,3; buffer-offer-save doesn't seem to have any effect Date: Fri, 31 May 2013 01:17:27 +0100 Message-ID: References: <87hahk8hkp.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3074b7b038115204ddf88a93 X-Trace: ger.gmane.org 1369959523 22193 80.91.229.3 (31 May 2013 00:18:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 May 2013 00:18:43 +0000 (UTC) Cc: 14512@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 31 02:18:42 2013 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 1UiD3H-0002Y5-V7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 May 2013 02:18:40 +0200 Original-Received: from localhost ([::1]:37978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiD3H-0004Th-Hs for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2013 20:18:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiD3A-0004TX-I2 for bug-gnu-emacs@gnu.org; Thu, 30 May 2013 20:18:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiD38-0005y4-4i for bug-gnu-emacs@gnu.org; Thu, 30 May 2013 20:18:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiD38-0005y0-1C for bug-gnu-emacs@gnu.org; Thu, 30 May 2013 20:18:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UiD4b-0003Xh-OM for bug-gnu-emacs@gnu.org; Thu, 30 May 2013 20:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: E Sabof Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2013 00:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14512 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14512-submit@debbugs.gnu.org id=B14512.136995954613469 (code B ref 14512); Fri, 31 May 2013 00:20:01 +0000 Original-Received: (at 14512) by debbugs.gnu.org; 31 May 2013 00:19:06 +0000 Original-Received: from localhost ([127.0.0.1]:43346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiD3i-0003VC-B6 for submit@debbugs.gnu.org; Thu, 30 May 2013 20:19:06 -0400 Original-Received: from mail-qc0-f172.google.com ([209.85.216.172]:48989) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiD3g-0003UR-PW for 14512@debbugs.gnu.org; Thu, 30 May 2013 20:19:05 -0400 Original-Received: by mail-qc0-f172.google.com with SMTP id z1so504865qcx.3 for <14512@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== X-Received: by 10.224.34.198 with SMTP id m6mr8163871qad.39.1369959447398; Thu, 30 May 2013 17:17:27 -0700 (PDT) Original-Received: by 10.49.18.162 with HTTP; Thu, 30 May 2013 17:17:27 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:74693 Archived-At: --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 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
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.
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

(and (buffer-modified-p)=A0
=A0 =A0 =A0(or (buffe= r-file-name)=A0
=A0 =A0 =A0 =A0 =A0buffer-offer-save))

buffers.

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't exist.

Evgeni



On Fri, May 31, 2013 at 12:09 AM, G= lenn Morris <rgm@gnu.org> 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--