From dd70012dca136d1218987b602ce22330e406cb26 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 19 Jul 2021 19:21:49 +0300 Subject: [PATCH] Document recent changes in 'comint-delete-output' (bug#1496) * doc/emacs/misc.texi (Shell Mode): Document the new optional behavior of 'C-c C-o'. * etc/NEWS: Call out the new behavior of 'C-c C-o'. --- doc/emacs/misc.texi | 5 ++++- etc/NEWS | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 12cd492b4bb..aba98cf21e1 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -1021,7 +1021,10 @@ pending in the shell buffer and not yet sent. @findex comint-delete-output Delete the last batch of output from a shell command (@code{comint-delete-output}). This is useful if a shell command spews -out lots of output that just gets in the way. +out lots of output that just gets in the way. With a prefix argument, +this command saves the deleted text in the @code{kill-ring} +(@pxref{Kill Ring}), so that you could later yank it (@pxref{Yanking}) +elsewhere. @item C-c C-s @kindex C-c C-s @r{(Shell mode)} diff --git a/etc/NEWS b/etc/NEWS index 42869f44dcf..0c90683c767 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1426,6 +1426,10 @@ If non-nil, 'shell-mode' handles implicit "cd" commands, changing the directory if the command is a directory. Useful for shells like "zsh" that has this feature. ++++ +*** 'comint-delete-output' can now save deleted text in the kill-ring. +Interactively, 'C-u C-c C-o' triggers this new optional behavior. + ** Eshell --- -- 2.39.2