unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: replacement for shell mode comint-kill-output
Date: Wed, 15 Sep 2021 09:29:14 +0300	[thread overview]
Message-ID: <83y27ybbd1.fsf@gnu.org> (raw)
In-Reply-To: <CAHD1uAhthgwqERwmefGhEK6XGurwxS53p4f5yhYsV3zn-U1RyQ@mail.gmail.com> (message from huey on Tue, 14 Sep 2021 17:55:30 -0700)

> From: huey <hueypokerbrainz@gmail.com>
> Date: Tue, 14 Sep 2021 17:55:30 -0700
> 
> back in the version 19.30 days I could bring up a shell in emacs and
> enter shell commands.  After executing a command, C-c C-o
> (comint-kill-output) would remove the output from the shell buffer and
> place it in the kill ring, where I could do a simple yank and place
> that output in another  buffer.

According to the VC history, that command stopped putting text on the
kill-ring in Apr 1994, i.e. in Emacs 19.23.

> Today, using version 27.1, the comint-kill-output command is no
> longer, and C-c C-o provides the similar function
> comint-delete-output.  However, said output is not placed in the kill
> ring, and cannot be yanked back.
> 
> Is there a different/simple way to achieve the previous behavior?

In Emacs 28, "C-u C-c C-o" would kill the text instead of deleting it.



      parent reply	other threads:[~2021-09-15  6:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15  0:55 replacement for shell mode comint-kill-output huey
2021-09-15  6:20 ` tomas
2021-09-15  6:34   ` Eli Zaretskii
2021-09-15  6:29 ` Eli Zaretskii [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=83y27ybbd1.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.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.
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).