Nicolas Goaziou <n.goaz...@gmail.com> writes: > Hello, > > Eric Abrahamsen <e...@ericabrahamsen.net> writes: > >>> Right now I'm seeing breakage with `org-set-property' -- this only >>> happens on the indentation patches branch. Adding an EXPORT_AUTHOR >>> property with that command, value of "asdfadsf", gives me this: >>> >>> * Test Heading >>> :PROPERTIES: >>> >>> :EXPORT_AUTHOR: asdfasdfnil nil >>> >>> Extra blank nil, spurious "nils", and no :END:
One last thing! In the course of this I also noticed that, in a buffer that contains a broken property drawer, you can't set properties on *any* other heading. When `org-buffer-property-keys' goes looking for valid keys used elsewhere in the current buffer, it calls `org-get-property-block' on the broken drawer, and errors when that function returns nil. I tried changing the call to (org-get-property-block nil nil t), and that seems to solve it: at least the broken drawer is repaired, and I can successfully set properties. Dunno if that's the right way to handle it, though. Eric