This is the bug of the current sym/sch file format and the way
undo works.
The file format supports locking only for components, so when you
save and reopen your schematic the locking information of other
items will be lost anyway, even if gschem would keep it somehow
after undo.
As of now, gschem undoes things just by rereading auto-saved
schematic files. Therefore the bug will keep until the whole undo
system is refactored. And again, this wouldn't solve the above
mentioned issue with closing and opening of the schematic.
This is the bug of the current sym/sch file format and the way
undo works.
The file format supports locking only for components, so when you
save and reopen your schematic the locking information of other
items will be lost anyway, even if gschem would keep it somehow
after undo.
As of now, gschem undoes things just by rereading auto-saved
schematic files. Therefore the bug will keep until the whole undo
system is refactored. And again, this wouldn't solve the above
mentioned issue with closing and opening of the schematic.