> - This patch covers only one of many ways to make unwanted changes > in an invisible area. Others would be delete, backspace, > kill-region, yank, kill-line, and an arbitrarily long list of > less obvious other commands. Full protection could only be > done with pre-change-hooks or so, but would then prevent ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ May be you were referring to `before-change-functions' here?
I see the use of the above hook already in Org. (Strangely this hook ends with "functions" and has no has no hook in it.) ,---- | (org-add-hook 'before-change-functions 'org-before-change-function nil | 'local) `---- > also programmed changes - something that would not be useful. > `org-self-insert-command' is probably only ever used in an > interactive way, so the patch as you have written it may very > well function correctly.