Function: wgrep-exit
wgrep-exit is an interactive and natively compiled function defined in
wgrep.el.
Signature
(wgrep-exit)
Documentation
Return to original mode.
Key Bindings
wgrep-mode-map C-x C-q
Source Code
;; Defined in /nix/store/pbj4kr4ar755h56yscbqpnmv3swf8i1k-emacs-packages-deps/share/emacs/site-lisp/elpa/wgrep-20230203.1214/wgrep.el
(defun wgrep-exit ()
"Return to original mode."
(interactive)
(if (and (buffer-modified-p)
(y-or-n-p (format "Buffer %s modified; save changes? "
(current-buffer))))
(wgrep-finish-edit)
(wgrep-abort-changes)))