Get the identifier of the current mark. Returns the identifier of the current mark. This can be used to know the state of a database after an application crash, or to get the identifier of the initial implicit mark after a call to :meth:`File.enable_undo`. T
(self)
| 2844 | self.redo(mark) |
| 2845 | |
| 2846 | def get_current_mark(self) -> int: |
| 2847 | """Get the identifier of the current mark. |
| 2848 | |
| 2849 | Returns the identifier of the current mark. This can be used |
| 2850 | to know the state of a database after an application crash, or to |
| 2851 | get the identifier of the initial implicit mark after a call |
| 2852 | to :meth:`File.enable_undo`. |
| 2853 | |
| 2854 | This method can only be called when the Undo/Redo mechanism |
| 2855 | has been enabled. Otherwise, an UndoRedoError |
| 2856 | is raised. |
| 2857 | |
| 2858 | """ |
| 2859 | self._check_open() |
| 2860 | self._check_undo_enabled() |
| 2861 | return self._curmark |
| 2862 | |
| 2863 | def _shadow_name(self) -> tuple[Node, str]: |
| 2864 | """Compute and return a shadow name. |