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.bugs Subject: bug#1496: 23.0.60; comint-delete-output should copy region to the kill ring Date: Mon, 19 Jul 2021 17:14:02 +0200 Message-ID: <87lf62mj45.fsf@gnus.org> References: <20081204233711.3FD4C90809F@mission.wooz.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9240"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 1496@debbugs.gnu.org To: barry@python.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 19 17:15:31 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1m5UzR-0002CQ-Uj for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 17:15:29 +0200 Original-Received: from localhost ([::1]:36338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5UzQ-0007YV-Tn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 11:15:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5Uz0-0007Uo-F1 for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 11:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5Uz0-0006ub-6P for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 11:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5Uz0-0000IU-0k for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 11:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 15:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1496 X-GNU-PR-Package: emacs Original-Received: via spool by 1496-submit@debbugs.gnu.org id=B1496.16267076521052 (code B ref 1496); Mon, 19 Jul 2021 15:15:01 +0000 Original-Received: (at 1496) by debbugs.gnu.org; 19 Jul 2021 15:14:12 +0000 Original-Received: from localhost ([127.0.0.1]:59801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5UyC-0000Gu-9A for submit@debbugs.gnu.org; Mon, 19 Jul 2021 11:14:12 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5UyB-0000Ge-3g for 1496@debbugs.gnu.org; Mon, 19 Jul 2021 11:14:11 -0400 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=pPo2sM3hFw6l3kGkxaYyMzslAK64LoewJcFYd9NSphs=; b=gS4DQfxTp06BrFx0fP86IC3CGY HYtws3vbjBOa2WIzORdDuAIlLqJ8+plBHeLNUvsW/DmioxU1fbCgnspVynRXAi7A6yT/PxkhvnhfV Lw5uifbaJw3Dp5eu6RUeARausUD9SGGUQBwnzO6YH5+9rTgq/uWYOwV9Vv5bJ6Z/m4hY=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5Uy2-00087s-Hq; Mon, 19 Jul 2021 17:14:05 +0200 X-Now-Playing: Colored Music's _Individual Beauty_: "Night Paradise" In-Reply-To: <20081204233711.3FD4C90809F@mission.wooz.org> (barry@python.org's message of "Thu, 4 Dec 2008 18:37:10 -0500 (EST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210258 Archived-At: barry@python.org writes: > comint-delete-output uses delete-region instead of kill-region because the > latter sets this-command. Still, comint-delete-output should copy the killed > region to the kill ring so that it can be conveniently yanked into other > buffers. A use case: > > I use bzr diff in a shell buffer to get the changes in my working directory. > I'd like to copy that output directly into an email or a pastebin buffer. > With comint-delete-output's current behavior I can't use C-c C-o because the > output is thrown away. By adding a call to copy-region-as-kill, I can now go > to my mail buffer and hit C-y to paste the diff output. (I'm going through old bug reports that unfortunately wasn't resolved at the time.) I think that sounds like useful functionality, to I've now made `C-u C-c C-o' save the output on the kill ring (before deleting it) in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no