From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: C-x C-v considered harmful Date: Wed, 08 Jul 2009 03:32:46 +0300 Organization: JURTA Message-ID: <8763e42dhl.fsf@mail.jurta.org> References: <19020.2798.523236.406366@rgr.rgrjr.com> <72597301DECF498C8943373F597732A6@us.oracle.com> <19021.23100.86775.844823@rgr.rgrjr.com> <19022.27409.779079.636945@rgr.rgrjr.com> <87vdm5xqpv.fsf@mail.jurta.org> <2F7C63D7187F4B44A095A4D99C86AF6F@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247016539 25229 80.91.229.12 (8 Jul 2009 01:28:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 01:28:59 +0000 (UTC) Cc: rogers-emacs@rgrjr.dyndns.org, rms@gnu.org, emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 08 03:28:51 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MOLxr-0001lH-JD for ged-emacs-devel@m.gmane.org; Wed, 08 Jul 2009 03:28:51 +0200 Original-Received: from localhost ([127.0.0.1]:38798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOLxr-0000WL-0Y for ged-emacs-devel@m.gmane.org; Tue, 07 Jul 2009 21:28:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOLxZ-0000Jb-Ho for emacs-devel@gnu.org; Tue, 07 Jul 2009 21:28:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOLxV-0000F4-J9 for emacs-devel@gnu.org; Tue, 07 Jul 2009 21:28:33 -0400 Original-Received: from [199.232.76.173] (port=48318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOLxV-0000Ep-Dp for emacs-devel@gnu.org; Tue, 07 Jul 2009 21:28:29 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:40927 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOLxS-0005ki-Gs; Tue, 07 Jul 2009 21:28:26 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.53.27.cable.starman.ee [82.131.53.27]) by mx1.starman.ee (Postfix) with ESMTP id 444B93F4118; Wed, 8 Jul 2009 04:28:18 +0300 (EEST) In-Reply-To: <2F7C63D7187F4B44A095A4D99C86AF6F@us.oracle.com> (Drew Adams's message of "Mon, 6 Jul 2009 18:07:19 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112156 Archived-At: > I thought we had moved forward from the question of `find-alternate-file' to the > question of `kill-buffer'. If you agree, then please, let's phrase the > discussion that way, going forward. > > The question, for each of the particular contexts you cite, is whether > _`kill-buffer'_ should query/warn. How `kill-buffer' might be called > is not the point. I brought these examples to help deciding what a default list of buffers should require a confirmation. As Johan pointed out it is just a matter of setting `kill-buffer-query-functions', e.g. in *shell* buffers. But note that this can be annoying for users who like creating a lot of shell buffers, so exiting from Emacs will ask a separate confirmation for each of them. (BTW, `C-x C-c' already asks a confirmation about shell buffers.) When doing this also please take care of not adding more confirmations to existing ones. For instance, currently `C-x C-v' on a modified file buffer asks a confirmation twice (I think one confirmation should be enough). -- Juri Linkov http://www.jurta.org/emacs/