aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVisuwesh2024-09-09 20:08:04 +0530
committerEli Zaretskii2024-09-14 12:41:29 +0300
commitdb1eb8a282c1832fd34be049e80dcb1a3b59ade2 (patch)
treee0aed9c7549083dfad9a35bceb651082befbcc21 /doc
parent7c767ec781fdba02d073b79113b1d8d89548bb08 (diff)
downloademacs-db1eb8a282c1832fd34be049e80dcb1a3b59ade2.tar.gz
emacs-db1eb8a282c1832fd34be049e80dcb1a3b59ade2.zip
Make the *grep* buffer editable
* lisp/progmodes/compile.el (compilation--update-markers): Factor out function... (compilation-next-error-function): ...from here. Adjust to use the above. * lisp/progmodes/grep.el (grep-edit--prepare-buffer) (grep-edit-mode-map, grep-edit-mode-hook, grep-edit-mode) (grep-change-to-grep-edit-mode, grep-edit-save-changes): Add new 'grep-edit-mode' to make the grep results editable like in 'occur-edit-mode' by using the 'occur' framework. (grep-mode-map): Bind 'e' to the new command 'grep-change-to-grep-edit-mode'. * doc/emacs/building.texi (Grep Searching): Update Info manual to include the above command. * etc/NEWS: Announce the change. (Bug#70820)
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/building.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi
index bb03d8cf325..4b2f1ed0649 100644
--- a/doc/emacs/building.texi
+++ b/doc/emacs/building.texi
@@ -528,6 +528,16 @@ grep-find-toggle-abbreviation}. To disable this abbreviation of the
528shell commands, customize the option @code{grep-find-abbreviate} to a 528shell commands, customize the option @code{grep-find-abbreviate} to a
529@code{nil} value. 529@code{nil} value.
530 530
531@findex grep-change-to-grep-edit-mode
532@cindex Grep Edit mode
533@cindex mode, Grep Edit
534 Typing @kbd{e} in the @file{*grep*} buffer makes the buffer writiable
535and enters the Grep Edit mode. Similar to Occur Edit mode (@pxref{Other
536Repeating Search}), you can edit the matching lines reported by
537@code{grep} and have those changes reflected in the buffer visiting the
538originating file. Type @kbd{C-c C-c} to leave the Grep Edit mode and
539return to the Grep mode.
540
531@node Flymake 541@node Flymake
532@section Finding Syntax Errors On The Fly 542@section Finding Syntax Errors On The Fly
533@cindex checking syntax 543@cindex checking syntax