From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Variable for Confirming Killing a Buffer Date: Fri, 03 Dec 2021 22:32:17 +0100 Message-ID: <87h7bptlwe.fsf@gnus.org> References: <9EA40AE1-5B31-45D9-AF71-17BB3C6AB8A3@me.com> <87tufpvd5z.fsf@gnus.org> <3E13280E-45F8-4958-BE9B-C19FE2E5235B@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="32346"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Oliver Taylor Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 03 22:33:23 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 1mtGBH-0008Bn-Ax for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 22:33:23 +0100 Original-Received: from localhost ([::1]:36670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtGBG-0007VB-DK for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 16:33:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtGAM-0006Jk-Pg for emacs-devel@gnu.org; Fri, 03 Dec 2021 16:32:26 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=46558 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtGAK-0003f7-VR for emacs-devel@gnu.org; Fri, 03 Dec 2021 16:32:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=y4gdja9FzNSGznYKVm+sfookU8xgKaV+qeUFQFPet4A=; b=GOR3dE30zwdyQTF6LBXyS85nJS v/X1mCoZK+PKkHWXOeQ3ouOmlAzPFnJOc1WAMcAUoxQbIcHOcT78f33dv2B+9cKFB15WMqeZoBz5X H4d8dk53SQAbZk7L6nSUL43zGSWgvzI8QdQzW6feBXI3SXVqZobX7IWvH79bzTsZUN9M=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtGAG-0006SF-DZ; Fri, 03 Dec 2021 22:32:22 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUsVXEwZ49Hd5qK a1QLEBJBUVpSha7///93llwQAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UMAxUYMZQwm4YAAAG5SURB VDjLbZPNbqQwDMcdBD3HiN6Jd8W51WrvU9W5pyvyAEVq3v8R1k4IYYbxJcK//P0ZAMTQwjMzOCLi U/ALnxERkIJLPERyGRSNsY+CHaBetVMQUP05lpEjhhgFjA4PA7A+rp8x9gFyrY1MPpiYtXhv6w2R v+ACLDNi/34FrytLkqChtjvQs9qXgrRJI1TxxBw95JYobZToqJn5809paaSURFW7nDz/LQDHRYjG yiJbQB6MguRavW87GNMZSJJbmRulR+CLYimATp2UqT0C6UR2NfABaqxX5g+BFWyHQoA5gZZcgNbM l6oU9BnQIsNqyQcBOmGZFS15WnWFzGsGOnRN7hrgApSQBbwA9ZO1+SAk2e0O9Nt1zlCxnj/6mpxo BgPZ7cb+5n4fob4BnO12xY36A8iThfkRiN/J5pvCl7ogZwBCO79sCqZarjRuRYbjHBbxL+W+VyCp LVoDgwb74UMxWjA6jw6CgPUA+m8ZfWAmQLdUQVylgfzrORtjR6XSXQE0i2+GIZh7MBIML5tciN0y rw1QmmVTcwQI36b5GXSveh+Gf9vAJ9DRRlDAT38GwVEBEGOL5P1/7KuiJdq5fh8AAAAldEVYdGRh dGU6Y3JlYXRlADIwMjEtMTItMDNUMjE6MjQ6NDkrMDA6MDBfAsTNAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIxLTEyLTAzVDIxOjI0OjQ5KzAwOjAwLl98cQAAAABJRU5ErkJggg== X-Now-Playing: Depeche Mode's _Construction Time Again_: "The Landscape Is Changing" In-Reply-To: <3E13280E-45F8-4958-BE9B-C19FE2E5235B@me.com> (Oliver Taylor's message of "Fri, 3 Dec 2021 11:45:35 -0800") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 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, RDNS_NONE=0.793, 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:280875 Archived-At: Oliver Taylor writes: > I would imagine the flaw with this is that there are probably a lot of > different ways buffers get killed, and a key binding is only one of > them, so it would only offer a little protection. I think it's the explicit user-initiated kills that we'd want to be able to stop, though? Whether (say) man-mode has decided to kill off a buffer it's created isn't very interesting for the users. >> As for the feature itself, I expect people to want to be able to kill >> some buffers without query, anyway, so perhaps it should allow a list of >> major modes that should be queried? > > Would this be better accomplished by setting the variable via a mode-hook? Perhaps? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no