Does IDA have ability to lock/unlock disassembly output of specific region?

I wonder if IDA has option to lock/unlock disassembly output of function or code/data region to prevent the region that has been worked on from being messed up (cats sit on keyboard, run python scripts with wrong parameter, etc, …) While undo & backup sometimes work, cat sometimes can even save database after messed it up completely. I found option to mark as decompiled but after reading document it is only visual cue.

If not, I wonder if it is possible to dump specific region to idc instead of entire database, since I sometimes need copy done work between database of binaries with different revision.