From: Eli Zaretskii Date: Mon, 19 Jul 2021 16:21:49 +0000 (+0300) Subject: Document recent changes in 'comint-delete-output' (bug#1496) X-Git-Tag: emacs-28.0.90~1803 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dd70012dca136d1218987b602ce22330e406cb26;p=emacs.git 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'. --- 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 ---