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: [PATCH] Add comint-clear-buffer Date: Sun, 22 Feb 2015 16:23:01 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1424640232 23026 80.91.229.3 (22 Feb 2015 21:23:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2015 21:23:52 +0000 (UTC) Cc: emacs-devel To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 22 22:23:44 2015 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 1YPe07-0007vM-7K for ged-emacs-devel@m.gmane.org; Sun, 22 Feb 2015 22:23:43 +0100 Original-Received: from localhost ([::1]:41311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPe06-00050h-Iv for ged-emacs-devel@m.gmane.org; Sun, 22 Feb 2015 16:23:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPe03-00050R-09 for emacs-devel@gnu.org; Sun, 22 Feb 2015 16:23:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPdzz-0001H0-QY for emacs-devel@gnu.org; Sun, 22 Feb 2015 16:23:38 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:13269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPdzz-0001Gw-Mk for emacs-devel@gnu.org; Sun, 22 Feb 2015 16:23:35 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsTAPOG1lTO+LI//2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWIwULCzQSFBgNJIg4CM4jAQEBAQYBAQEBHo94B4QqBYonn0uBRSKEDCCCcwEBAQ X-IPAS-Result: ArsTAPOG1lTO+LI//2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWIwULCzQSFBgNJIg4CM4jAQEBAQYBAQEBHo94B4QqBYonn0uBRSKEDCCCcwEBAQ X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="111177034" Original-Received: from 206-248-178-63.dsl.teksavvy.com (HELO pastel.home) ([206.248.178.63]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Feb 2015 16:23:33 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 840F91028; Sun, 22 Feb 2015 16:23:01 -0500 (EST) In-Reply-To: (Bozhidar Batsov's message of "Sun, 22 Feb 2015 08:06:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.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:183399 Archived-At: > Any objections to the attached patched? > Clearing the entire comint buffer is a pretty common functionality often > added in modes based on comint and I'd like to see it built-in. I haven't noticed it being added to derived modes, but it sounds like useful functionality: I typically use M-x erase-buffer, but keeping this loses the current input&prompt, so a dedicated command sounds better. IOW: go ahead (as for the chosen key-binding, it sounds completely arbitrary, but I don't have a better suggestion). Stefan