From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add comint-clear-buffer Date: Mon, 23 Feb 2015 00:08:21 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51a74b40e36f6050fb48657 X-Trace: ger.gmane.org 1424642919 30359 80.91.229.3 (22 Feb 2015 22:08:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2015 22:08:39 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 22 23:08:38 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 1YPeha-0001oz-7x for ged-emacs-devel@m.gmane.org; Sun, 22 Feb 2015 23:08:38 +0100 Original-Received: from localhost ([::1]:41401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPehZ-00008L-Ck for ged-emacs-devel@m.gmane.org; Sun, 22 Feb 2015 17:08:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPehK-00008G-U5 for emacs-devel@gnu.org; Sun, 22 Feb 2015 17:08:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPehJ-0004cW-VI for emacs-devel@gnu.org; Sun, 22 Feb 2015 17:08:22 -0500 Original-Received: from mail-ie0-x234.google.com ([2607:f8b0:4001:c03::234]:41699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPehJ-0004cR-Od for emacs-devel@gnu.org; Sun, 22 Feb 2015 17:08:21 -0500 Original-Received: by iecrd18 with SMTP id rd18so19292983iec.8 for ; Sun, 22 Feb 2015 14:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=j07HSHNo5QxcpFPot2PDwI6ok/lAaDsj21rn3ci4bjY=; b=cv5NLHiNmhJeAwyl7NJnIa0xlbakeWaE9vdQ481n/MZArqAEj8k9mUyLEgDdlzBTC7 TYakzpQ9O3TKe5kxTveV5KmoV45p/fDtK9zpswQbomyOHQobET0OTZV/bfBRMi9fX5zW gYmnnLU5zLtNjIK4Oqyrv52FOiMpKoakYrExxEsGzqnokQu7OQHfhqFIUKeQ68tfpwvP LYv37+mbHRDJYp/ow+UZAQNLUhdNs4m491duWcaryAdaFKJaALNPDuIUKPRVRTTQVKWP 0c0kTcJAMpIgGUMM2/aYBoYpMHUV0EQ0kjzcfGsblRLO5KH6FWWOY5MrnCK0QbnpXB/U Kvww== X-Received: by 10.43.52.197 with SMTP id vn5mr8271354icb.64.1424642901159; Sun, 22 Feb 2015 14:08:21 -0800 (PST) Original-Received: by 10.36.78.18 with HTTP; Sun, 22 Feb 2015 14:08:21 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: 4rA8UmoBiEG0BD7z4eHp-0OF__Q X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::234 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:183404 Archived-At: --bcaec51a74b40e36f6050fb48657 Content-Type: text/plain; charset=UTF-8 Thanks! Regarding the keybinding - it was chosen because of `C-c C-o` and a similar command in SLIME and CIDER bound to `C-c M-o`. On 22 February 2015 at 23:23, Stefan Monnier wrote: > > 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 > --bcaec51a74b40e36f6050fb48657 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks!

Regarding the keybinding = - it was chosen because of `C-c C-o` and a similar command in SLIME and CID= ER bound to `C-c M-o`.

On 22 February 2015 at 23:23, Stefan Monnier &= lt;monnier@ir= o.umontreal.ca> wrote:
> Any objections to the attached patched?
> Clearing the entire comint buffer is a pretty common functionality oft= en
> 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).


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--bcaec51a74b40e36f6050fb48657--