== BUILD 4114 == 3 September 2021 ==
When closing a (multi-file) project I want to clear all undo data.
I am assuming todays new API routine will do the trick.
on_pre_close_project(window)
Buffer.clear_undo_stack()
Please help with the code layout for this. I have demonstrated many other (py) working examples but nothing for Buffer.clear_undo_stack(). No matter what and after many hours, it always comes up undefined.
“c:\Users\markr\AppData\Roaming\Sublime Text\Packages\User\On_Project_Close_Clear_Buffers.py”
API Reference
http://www.sublimetext.com/docs/api_reference.html#sublime.View:ver-dev