class_docstr: Mutable class to hold Emacs specific state.
code: def __init__(self) -> None:
      # Simple macro recording. (Like Readline does.)
      # (For Emacs mode.)
      self.macro: list[KeyPress] | None = []
      self.current_recording: list[KeyPress] | None = None
  
imports: from __future__ import annotations
  from .key_processor import KeyPress
label_desc: Use image node_id 1 to create a new EmacsState object  with example: obj = EmacsState()