Function: occur-edit-mode

occur-edit-mode is an interactive and byte-compiled function defined in replace.el.gz.

Signature

(occur-edit-mode)

Documentation

Major mode for editing *Occur* buffers.

In this mode, changes to the *Occur* buffer are also applied to the originating buffer.

To return to ordinary Occur mode, use M-x occur-cease-edit (occur-cease-edit).

In addition to any hooks its parent mode occur-mode might have run, this mode runs the hook occur-edit-mode-hook, as the final or penultimate step during initialization.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/replace.el.gz
(define-derived-mode occur-edit-mode occur-mode "Occur-Edit"
  "Major mode for editing *Occur* buffers.
In this mode, changes to the *Occur* buffer are also applied to
the originating buffer.

To return to ordinary Occur mode, use \\[occur-cease-edit]."
  (setq buffer-read-only nil)
  (add-hook 'after-change-functions #'occur-after-change-function nil t)
  (message (substitute-command-keys
	    "Editing: Type \\[occur-cease-edit] to return to Occur mode.")))