From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r115327: Special mode buffers shouldn't query before exiting. Date: Sun, 01 Dec 2013 12:02:22 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385917356 26772 80.91.229.3 (1 Dec 2013 17:02:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Dec 2013 17:02:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 01 18:02:41 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VnAPp-0000hb-2e for ged-emacs-devel@m.gmane.org; Sun, 01 Dec 2013 18:02:41 +0100 Original-Received: from localhost ([::1]:60492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnAPo-0004gH-Mx for ged-emacs-devel@m.gmane.org; Sun, 01 Dec 2013 12:02:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnAPe-0004g4-Nl for emacs-devel@gnu.org; Sun, 01 Dec 2013 12:02:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnAPX-0008CL-E9 for emacs-devel@gnu.org; Sun, 01 Dec 2013 12:02:30 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnAPX-0008Bm-Aa for emacs-devel@gnu.org; Sun, 01 Dec 2013 12:02:23 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCox4/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kiCTBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFFMCox4/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kiCTBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="40844414" Original-Received: from 76-10-140-120.dsl.teksavvy.com (HELO pastel.home) ([76.10.140.120]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Dec 2013 12:02:22 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 75EFB64AEB; Sun, 1 Dec 2013 12:02:22 -0500 (EST) In-Reply-To: (Lars Ingebrigtsen's message of "Sun, 01 Dec 2013 14:22:06 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165987 Archived-At: > - (if (y-or-n-p "quit eww? ") > - (progn > - (setq eww-history nil) > - (kill-buffer (current-buffer))))) > + (setq eww-history nil) > + (kill-buffer (current-buffer))) Actually, I think killing a buffer without querying is ... "cavalier". As I said elsewhere, eww should probably inherit from `special-mode' which would bind `q' to quit-window, IIRC: this doesn't query either and avoids the loss of information but not killing the buffer. Stefan