From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Variable for Confirming Killing a Buffer Date: Thu, 02 Dec 2021 23:17:48 +0000 Message-ID: <87o85ysijn.fsf@posteo.net> References: <9EA40AE1-5B31-45D9-AF71-17BB3C6AB8A3@me.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Oliver Taylor , emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 03 00:18:37 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msvLY-0002x1-DA for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 00:18:36 +0100 Original-Received: from localhost ([::1]:54342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msvLX-0000sG-AG for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 18:18:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msvKs-0000BZ-EG for emacs-devel@gnu.org; Thu, 02 Dec 2021 18:17:54 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:38725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msvKq-0004P0-3z for emacs-devel@gnu.org; Thu, 02 Dec 2021 18:17:54 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 60799240026 for ; Fri, 3 Dec 2021 00:17:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1638487070; bh=7E+VkG/hLnVJ2BDKfDNVnOtJUh1quOVnRlpYi0OfZC4=; h=From:To:Cc:Subject:Date:From; b=LGn+qGiHCm1bmczryfqkHVng4Esox4vifNqs1GEeq94wwX6HYLQTxRs+f/2XL0+ae Bkh9EJW1h37Ok4wDkBTswJBSwX3suB6yff1+hWLyBWyoeAtoFspj8xDG0yrOr0utyL MUskN9Wn38BPHrUzffO2WSvoz/LhtEURrvYa/3d4g2yK8MX2ZWVP+ZzsWY0r71OjvK Tkqx+bFoldIxHCwgdocADXRfarqYythYS4Zgmm1MKVWx20X+/LzbxxWYIRT5md0Vgb M5VGvI/OtZKEx45OGmB7APe96SjVsq2R0qcQD2nCB2tI37zm8UoasJCZBgLqk5iHIY SdjX4TdHCvChw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J4sLj45xnz9rwg; Fri, 3 Dec 2021 00:17:49 +0100 (CET) In-Reply-To: (Stefan Kangas's message of "Thu, 2 Dec 2021 14:41:23 -0800") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280798 Archived-At: Stefan Kangas writes: > Oliver Taylor writes: > >> Now, doing (setq-local buffer-confirm-kill t) will prevent accidental data >> loss. > > Could you describe the scenario(s) under which you have experienced > accidental data loss in more detail? Which modes were you using? A common example I can imagine lot of people have experienced is the accidental killing of the *scratch* buffer. -- Philip Kaludercic