
    ft                    6    d dl mZ ddlmZ dgZ G d d      Zy)    )annotations   )KeyPress
EmacsStatec                  B    e Zd ZdZddZddZed	d       ZddZddZ	y)
r   z5
    Mutable class to hold Emacs specific state.
    c                     g | _         d | _        y N)macrocurrent_recordingselfs    a/var/www/cvtools/html/venv/lib/python3.12/site-packages/prompt_toolkit/key_binding/emacs_state.py__init__zEmacsState.__init__   s     -/
8<    c                    d | _         y r	   r   r   s    r   resetzEmacsState.reset   s
    !%r   c                    | j                   duS )z&Tell whether we are recording a macro.Nr   r   s    r   is_recordingzEmacsState.is_recording   s     %%T11r   c                    g | _         y)zStart recording macro.Nr   r   s    r   start_macrozEmacsState.start_macro   s
    !#r   c                4    | j                   | _        d| _         y)zEnd recording macro.N)r   r
   r   s    r   	end_macrozEmacsState.end_macro!   s    ++
!%r   N)returnNone)r   bool)
__name__
__module____qualname____doc__r   r   propertyr   r   r    r   r   r   r   
   s/    =& 2 2$&r   N)
__future__r   key_processorr   __all__r   r"   r   r   <module>r&      s!    " # 
& &r   