unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: barry@python.org
Cc: 1496@debbugs.gnu.org
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	[thread overview]
Message-ID: <87lf62mj45.fsf@gnus.org> (raw)
In-Reply-To: <20081204233711.3FD4C90809F@mission.wooz.org> (barry@python.org's message of "Thu, 4 Dec 2008 18:37:10 -0500 (EST)")

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





      parent reply	other threads:[~2021-07-19 15:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 23:37 bug#1496: 23.0.60; comint-delete-output should copy region to the kill ring barry
2008-12-11 16:24 ` Stefan Monnier
2008-12-11 16:48   ` Barry Warsaw
2021-07-19 15:14 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lf62mj45.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=1496@debbugs.gnu.org \
    --cc=barry@python.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).